报告

如需详细了解需求开发广告系列的报告功能,请参阅 Google Ads API 需求开发广告系列报告指南。您可以使用 AdsApp.search() 函数运行该页面上的任何查询,以及您创建的任何自定义查询。

例如,如需运行广告系列级报告查询,请执行以下操作:

  const searchResults = AdsApp.search(`
SELECT
  campaign.id,
  campaign.status,
  campaign.bidding_strategy_type
FROM campaign
WHERE campaign.advertising_channel_type = DEMAND_GEN
  `);

  while (searchResults.hasNext()) {
    const row = searchResults.next();
    const campaign = row.campaign;
    // Your custom logic here, fetching the selected fields to do your analysis.
  }