How can I get ad group data by counrtu segments ?

36 views
Skip to first unread message

晓薇陈

unread,
Sep 13, 2021, 6:38:11 AM9/13/21
to AdWords API and Google Ads API Forum
Hi, the api document show that ad group and campaign support  segments.geo_target_country,but it do not shows in query builder and when I try to send a request ,it returns error.
Thanks,Viviana.
WechatIMG3.jpegWechatIMG13.png

Google Ads API Forum Advisor

unread,
Sep 14, 2021, 11:13:50 AM9/14/21
to viviana...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to Google Ads API support. When campaign or adGroup is specified in the FROM clause of your query these segments aren't available. Each report has a switch to show only the segments that are available when the table that is being reported is in the FROM clause, you can switch it to "yes" and those segments disappear.

You can also use the GAQL query builder of each report with it's "help me build a query" button right under the name of the report to make certain that you created a correct report. For example for campaign report here's its query builder.

You can also use our query validator to check if a query from any of the reports is technically correct.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


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