How do I get account consumption group by country

47 views
Skip to first unread message

王众杰

unread,
Apr 2, 2020, 9:23:57 AM4/2/20
to AdWords API and Google Ads API Forum
I use ads api, not adwords api.

my query = "
SELECT
segments.geo_target_region,
segments.date
FROM customer WHERE segments.date BETWEEN '2020-03-30' AND '2020-03-31'
"



Tip me:
   "message": "Cannot select or filter on the following segments: 'segments.geo_target_region'(could not support requested resources: 'CUSTOMER'), since segment is incompatible with the resource in the FROM clause or other selected segmenting resources."



How do I get account consumption group by country? 

Google Ads API Forum Advisor Prod

unread,
Apr 2, 2020, 8:52:20 PM4/2/20
to baidush...@gmail.com, adwor...@googlegroups.com

Hi Zhongjie,

Thank you for reaching out. If you navigate on the customer resource page to the question “Is customer specified in the FROM clause of your query?” and select “Yes, it is”,  then you will notice that the option for geo_target_region is gone. This is because when you specify customer in the FROM clause, some metrics and segments cannot be used. To fix this issue, you could query on the geographic_view resource or user_location_view resource to fetch the account consumption group by country. Please let me know if you have any further concerns.

Thanks and regards,
Xiaoming, Google Ads API Team

 


 

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