有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

谷歌广告API中广告性能报告的java等价物?

我正在使用Adwords API。但对Adwords的支持将在2022年结束。我想迁移到新的谷歌广告API。我想知道谷歌广告中的AD_PERFORMANCE_REPORT(在Adwords中)的等价物

比如, KEYWORD_PERFORMANCE_REPORT的等价物是KEYWORD_view

我试了很多次,但都没找到

提前谢谢


共 (1) 个答案

  1. # 1 楼答案

    你在找广告组广告

    以下是我使用的一个查询:

    SELECT campaign.name, ad_group.name, customer.id, customer.descriptive_name,
                    campaign.advertising_channel_type,
                    segments.date,
                    ad_group_ad.ad.expanded_text_ad.headline_part1,
                    ad_group_ad.ad.expanded_text_ad.headline_part2, 
                    ad_group_ad.ad.expanded_text_ad.headline_part3,
                    ad_group_ad.ad.expanded_text_ad.description,
                    ad_group_ad.ad.expanded_text_ad.description2,
                    customer.currency_code,
                    metrics.average_cpc,
                    ad_group_ad.ad.shopping_product_ad,
                    metrics.cost_micros,
                    metrics.impressions,
                    metrics.clicks,
                    metrics.ctr,
                    metrics.conversions
                    FROM ad_group_ad
                    WHERE segments.date BETWEEN {date_range}
                    AND campaign.advertising_channel_type = 'SEARCH'
                    AND metrics.cost_micros > 0
                    ORDER BY segments.date
    

    请记住,对于购物广告,您需要使用shopping_performance_view