Location targeting auto complete in google ads

17 views
Skip to first unread message

Afsane Ghafoori

unread,
Nov 4, 2019, 7:08:02 PM11/4/19
to AdWords API and Google Ads API Forum
Hello there,

in google ads, when you are creating a campaign while defining location targeting, there is an auto-complete that shows the matched results for the user search. I have attached a picture of that to this message. How can I provide such an auto-complete and that contents? Is there a specific class that creates that auto-complete or any specific service which could provide that list content?

I tried using the "GeoTargetConstantService" service and  "suggestGeoTargetConstants" method, but the problem is that I could pass just one country code to this method, not all the countries around the world.

could you give me some solution for my problem?
Screen Shot 2019-10-24 at 9.22.40 am.png

Google Ads API Forum Advisor Prod

unread,
Nov 5, 2019, 12:32:46 PM11/5/19
to ghafoor...@gmail.com, adwor...@googlegroups.com

Hi Afsane,

Thank you for reaching out. It is not possible to implement the auto complete feature to pull the list contents via API. However, you could use this code sample to get the GeoTargetConstants by given location names without specifying the country code to get the suggestions around the world. Let us know if you need any additional information.

Regards,
Nikisha Patel, Google Ads API Team



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