How to get report by certian city?

29 views
Skip to first unread message

Alex Melnik

unread,
Jun 9, 2018, 1:57:42 PM6/9/18
to AdWords API and Google Ads API Forum

Hello!

I've tried use the GEO_PERFORMANCE_REPORT type of report to retrieve statistics  on Impressions, Clicks and CTR in certain city.

What field should I use? And Criteria ID is value of what field ?

Here is the body of request
report = {
      'reportName': 'Month_report_Subaru_adwords',
      'dateRangeType': 'LAST_30_DAYS',
      'reportType': 'GEO_PERFORMANCE_REPORT',
      'downloadFormat': 'CSV',
      'selector': {
          'fields': ['CityCriteriaId', 'CountryCriteriaId', 'Date', 'AdNetworkType1','Impressions', 'Clicks', 'Ctr'],
          'predicates': [{ 'field': 'AdNetworkType1', 'operator': 'IN', 'values': ['CONTENT','SEARCH']},
                         { 'field': 'CityCriteriaId', 'operator': 'EQUALS', 'values': 1011853}]
      }
  }

Luis Xander Talag (AdWords API Team)

unread,
Jun 11, 2018, 1:28:32 AM6/11/18
to AdWords API and Google Ads API Forum
Hi Alex,

You could use the geotargets table to check the criteriaId of the city that you want to filter. Then, you could set that criteriaId as the value for the CityCriteriaId attribute to filter your Geo Performance Report. Let me know if you have further clarifications.

Thanks and regards,
Luis
AdWords API Team

Alex Melnik

unread,
Jun 14, 2018, 9:56:06 AM6/14/18
to AdWords API and Google Ads API Forum
Thanks for assistance!



суббота, 9 июня 2018 г., 20:57:42 UTC+3 пользователь Alex Melnik написал:
Reply all
Reply to author
Forward
0 new messages