Report - Auction Insights Unrecognized Fields

526 views
Skip to first unread message

Pam Reichhartinger

unread,
Jun 21, 2022, 3:21:31 AM6/21/22
to Google Ads Scripts Forum
I'm trying to get the following properties for each campaign:

Campaign ID
Campaign Name
Auction Insights Domain
Auction Insights Search Impression Share

The documentation seems to suggest this is possible.

I have written the following basic code:

  var query = `
   SELECT campaign.id,
               campaign.name,
               segments.auction_insight_domain,
               metrics.auction_insight_search_impression_share
        FROM campaign
        WHERE segments.date = '2022-06-10'
          AND campaign.advertising_channel_type = 'SEARCH'
          AND campaign.status = 'ENABLED'
        ORDER BY campaign.id ASC
   `;
 
  var report = AdsApp.report(query);
 
   var rows = report.rows();
 
  while (rows.hasNext()) {
    var row = rows.next();
   
    Logger.log(row);
  }
   
 
 
However I get the following error when running this:

Exception: Call to GoogleAdsService.Search failed: Unrecognized fields in the query: 'segments.auction_insight_domain', 'metrics.auction_insight_search_impression_share'. at adsapp_compiled:18068:138 at adsapp_compiled:18079:9 at ra (adsapp_compiled:227:15) at Object.search (adsapp_compiled:235:20) at bI.search (adsapp_compiled:18194:36) at LH.search (adsapp_compiled:17771:19) at MH.search (adsapp_compiled:17866:20) at TH.search (adsapp_compiled:17958:19) at ed (adsapp_compiled:1042:15) at ed.next (<anonymous>)


Can you please help me?

Sigurd Fabrin

unread,
Jun 21, 2022, 6:24:00 AM6/21/22
to Google Ads Scripts Forum
Auction insight data doesn't seem to be available after all

---

It is a new metric (that should be available) in the new api v 11 - So you need to specify the api version because you're not using the default
Like this: AdsApp.search(query, {apiVersion:'v11'}

@Google in your documentation you suggest to specify api version like this: { apiVersion: '11' } however, that will produce an error. It works when prepending a 'v' 


Sigurd

Google Ads Scripts Forum Advisor

unread,
Jun 21, 2022, 7:52:07 AM6/21/22
to adwords...@googlegroups.com
Hi,

Thank you for posting your concern.

So that I can investigate the issue why you can't access the auction insights and for possible document update for correct implementation, would you be able to provide the following details?
  • Script name
  • Customer ID of the account where you implemented this script
  • email address that you use to login and authorize the script

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsscr...@google.com.

Regards,
Google Logo
Ernie John
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2byYYK:ref
Reply all
Reply to author
Forward
0 new messages