Which API can get Country Data ?

295 views
Skip to first unread message

sky zhao

unread,
Sep 6, 2019, 2:16:15 AM9/6/19
to AdWords API and Google Ads API Forum
I want to get a report for country ,include click num,cost money .
but when i use geographic_view, I can't get the data.

Google Ads API Forum Advisor Prod

unread,
Sep 6, 2019, 11:33:09 AM9/6/19
to sky.zh...@gmail.com, adwor...@googlegroups.com
Hello,

You should be able to get this data for your locations by using the following query:

SELECT
     geographic_view.country_criterion_id,
     geographic_view.location_type,
     metrics.clicks,
     metrics.cost_micros
FROM
    geographic_view

Let me know if you still have issues.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5001UHFuda:ref

sky zhao

unread,
Sep 10, 2019, 12:57:24 AM9/10/19
to AdWords API and Google Ads API Forum
When I Use the query  to get data ,it cause a error .


TIM图片20190910125525.png



在 2019年9月6日星期五 UTC+8下午11:33:09,adsapiforumadvisor写道:

sky zhao

unread,
Sep 10, 2019, 1:01:12 AM9/10/19
to AdWords API and Google Ads API Forum
Error Message:
{[ { "errorCode": { "queryError": "UNRECOGNIZED_FIELD" }, "message": "Unrecognized field in the query: 'geographic_view.country_criterion_id'." } ]}


在 2019年9月6日星期五 UTC+8下午11:33:09,adsapiforumadvisor写道:
Hello,

Google Ads API Forum Advisor Prod

unread,
Sep 10, 2019, 4:30:52 PM9/10/19
to sky.zh...@gmail.com, adwor...@googlegroups.com
Hello,

This looks to be an issue on our side. I'll have the team look into it and let you know when the issue is resolved. 
Reply all
Reply to author
Forward
0 new messages