Reporting

Consult the Google Ads API guide on Demand Gen reporting for full details about the reporting capabilities for Demand Gen campaigns. You can run any query found on that page, plus any custom query you create, using the AdsApp.search() function.

For example, to run the campaign level reporting query:

  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.
  }