Consult the
[Google Ads API guide on Demand Gen reporting](https://developers.google.com/google-ads/api/docs/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()`](https://developers.google.com/google-ads/scripts/docs/concepts/reports#search_example)
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.
      }