Google Ads API: how to get the metrics of DSA ad target criteria (used to be "WEBPAGE" in the legacy Criteria Performance Report)

121 views
Skip to first unread message

Mat

unread,
May 8, 2019, 7:10:43 AM5/8/19
to AdWords API and Google Ads API Forum
Hi,

sadly, the Criteria Performance Report ist not listed here:

So: how do I get the metrics (impressions, clicks ..) of DSA ad target criteria with the Google Ads API (used to be the criterion type "WEBPAGE" in the legacy Criteria Performance Report)?

Regards
Mat

googleadsapi...@google.com

unread,
May 8, 2019, 11:48:42 AM5/8/19
to m...@keyword-experte.de, AdWords API and Google Ads API Forum
Hello Mat, 

You will be able to use the ad_group_criterion.webpage.criterion_name or campaign_criterion.webpage.criterion_name attributes to pull the WebPage criteria and its metrics. 

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Mat

unread,
May 9, 2019, 2:24:15 AM5/9/19
to AdWords API and Google Ads API Forum
Hi Bharani,

thx for the quick response.

But - which ResurceName do I have to use in a query? Apparently, there are no metrics available in "campaign_criterion" nor in "ad_group_criterion"
And how can I get the ID of the webpage criterion to update it (e.g. the cpc_bid) later on?
Would you mind helping me out with a short example in the Google Ads Query Language?

Regards
Mat


googleadsapi...@google.com

unread,
May 9, 2019, 2:43:57 PM5/9/19
to m...@keyword-experte.de, AdWords API and Google Ads API Forum
Hello Mat, 

You will need to use the campaign_criterion.resource_name which will return the criterion Id for the specific resource. Similarly, you can obtain the resource name for ad group too. This can be used to update the bid values. The metrics data is currently available at the campaign, ad group and ad level. I have raised a feature request to the team regarding this. You may find the code sample to pull the reports here. Could you please give this a try?

Thanks,
Bharani, Google Ads API Team
Reply all
Reply to author
Forward
0 new messages