GeoTargetConstantService

126 views
Skip to first unread message

Roman Bondarenko

unread,
Aug 3, 2021, 10:24:06 AM8/3/21
to AdWords API and Google Ads API Forum
Hello there :) 

I am currently implementing targeting location for campaign level using Google Ads API.
Objective is to add up to 1000 locations to a campaign using only name of location... So we have to use GeoTargetConstantService to get id of each location criterion. But service has a limit of 25 location names per request... so when user inputs 1000 location names we have to perform 40 requests with GeoTargetConstantService to get ids of each location criteria. 

Could you, please, help me how to bypass limitation of GeoTargetConstantService or there is a better way to achieve this goal?

Thanks!

Google Ads API Forum Advisor

unread,
Aug 3, 2021, 8:41:46 PM8/3/21
to roman.bo...@myntelligence.com, adwor...@googlegroups.com
Hi Roman,

Thank you for reaching out to us regarding this. I would start by asking if you are looking to use the gRPC to call the service as shown here . While at the same time also thinking of how to reduce the size of the request so as to increase the amount of possible locations that can be gathered, as shown here .

Regards,
Google Logo
William Pescherine
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HLL06:ref
Message has been deleted

Roman Bondarenko

unread,
Aug 4, 2021, 5:01:32 AM8/4/21
to AdWords API and Google Ads API Forum
Hello again.

Thanks for helping me out! I am using code exactly the same as in the example here
As you might notices there are only 3 names for locations and could be up to 25. How could I pass more than 25? Or should make couple requests? For e.g., if I have 100 location suggestion, should I call 4 times GeoTargetConstantService?
Using SearchStream for geo_target_constant is not an option, because we need use suggestions for location names to match legit criteria...

Thanks!

Google Ads API Forum Advisor

unread,
Aug 5, 2021, 5:59:08 AM8/5/21
to roman.bo...@myntelligence.com, adwor...@googlegroups.com
Hi Roman,

Thank you for your follow up. I work with William and allow me to assist you as well.

I understand that you appear to be referring to the limit for the location_names, that you can include in a single request, then I can confirm that the limit is 25. If you wish to use the service to look up more location names, you will need to specify those in a separate request.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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