Reporting

  • Refer to the Google Ads API guide for Performance Max reporting for comprehensive details on reporting capabilities.

  • The AdsApp.search() function allows you to run queries from the guide or custom queries.

  • An example demonstrates how to query asset group performance data using AdsApp.search() .

Consult the Google Ads API guide on Performance Max reporting for full details about the reporting capabilities for Performance Max 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 asset group performance query:

   
 const 
  
 searchResults 
  
 = 
  
 AdsApp 
 . 
 search 
 ( 
 ` 
 SELECT 
 asset_group.id, 
 asset_group.name, 
 asset_group.primary_status, 
 metrics.conversions, 
 metrics.conversions_value, 
 metrics.cost_micros, 
 metrics.clicks, 
 metrics.impressions 
 FROM asset_group 
 WHERE campaign.id = CAMPAIGN_ID 
 AND segments.date DURING LAST_7_DAYS 
 ` 
 ); 
  
 while 
  
 ( 
 searchResults 
 . 
 hasNext 
 ()) 
  
 { 
  
 const 
  
 row 
  
 = 
  
 searchResults 
 . 
 next 
 (); 
  
 const 
  
 assetGroup 
  
 = 
  
 row 
 . 
 assetGroup 
 ; 
  
 // Your custom logic here, fetching the selected fields to do your analysis. 
  
 } 
 
Create a Mobile Website
View Site in Mobile | Classic
Share by: