curl for location targeting

176 views
Skip to first unread message

Wayne

unread,
Aug 12, 2021, 8:25:41 AM8/12/21
to AdWords API and Google Ads API Forum
Hi all
i want the criterion ID for location name.
In the above link, code is given, a curl for the same would be helpful.
Thanks.

Google Ads API Forum Advisor

unread,
Aug 13, 2021, 1:32:12 AM8/13/21
to cos.squa...@gmail.com, adwor...@googlegroups.com
Hi Wayne,

You may check out this guide for constructing requests without using a client library. For looking up locations by location name, you can then refer to this guide. Let me know if this is what you're looking for.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2LmeK9:ref

Wayne

unread,
Aug 13, 2021, 2:24:22 AM8/13/21
to AdWords API and Google Ads API Forum
Thanks!
Can we download the complete CSV through API? (this CSV here https://developers.google.com/adwords/api/docs/appendix/geotargeting)

Google Ads API Forum Advisor

unread,
Aug 16, 2021, 12:35:46 AM8/16/21
to cos.squa...@gmail.com, adwor...@googlegroups.com

Hi Wayne,

Thanks for getting back to us.

You may use the Geo_target_constant report in Google Ads API to download the geo targets. Then, you’ll need to create a post process that will transfer the API response in a CSV file. Kindly note that there is an existing feature request to download the report in the CSV file. With this, I would suggest keeping an eye on this blog as we will post any relevant updates when they become supported.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2LmeK9:ref
Message has been deleted

Wayne

unread,
Aug 16, 2021, 7:05:04 AM8/16/21
to AdWords API and Google Ads API Forum
Hi, thanks for the reply.
I have a question, when sending locations in batch through Google Ads API (https://developers.google.com/google-ads/api/docs/targeting/location-targeting#look_up_by_location_name)
We can send only 25 locations at once, however for every location, only 10 results are returned. Is there any way possible to get ALL possible results for that location name, instead of just 10?
And is there any filter we can provide when calling the API that we only want Target_Type==City results?
Thanks!

Google Ads API Forum Advisor

unread,
Aug 17, 2021, 11:41:27 AM8/17/21
to cos.squa...@gmail.com, adwor...@googlegroups.com
Hi Wayne,

I brought to my team your request for options to get all possible results and to filter by target type from location targeting. You may monitor our blog for an update.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


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