GeoTargetConstantService.SuggestGeoTargetConstants

322 views
Skip to first unread message

teambs

unread,
Feb 15, 2023, 6:23:14 AM2/15/23
to Google Ads API and AdWords API Forum
Hi


For using the above service in rest api are there any limits,

we are actually planning to integrate this with our UI, 
whenver a user enters a few words 
we would call our bk function which in turns call the rest api,  

For this scenario the no if calls to geotargetconstant service will be very high, does it impact, search stream api calls like getting rate limited?

or these are two are considered independent for rate limiting purpose

Please clarify

Regards

Google Ads API Forum Advisor

unread,
Feb 15, 2023, 12:23:42 PM2/15/23
to saranyap...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

There is no separate limits for using GeoTargetConstantService.SuggestGeoTargetConstants 

POST https://googleads.googleapis.com/v12/geoTargetConstants:suggest

You may see this guide for the limits on API operations, such as the number of operations that can be sent in a single mutate request. A Search or SearchStream request counts as one operation against the user's daily operation quota. One SearchStream request counts as one API operation irrespective of the number of batches.

Note that for the search stream API calls, you may send 15,000 API operations per day for Operations with Basic Access, and unlimited operations for Standard access.

However, you can also dynamically look up some constants using the Google Ads Query Language. You may use GoogleAdsService.Search or GoogleAdsService.SearchStream to get any report. You may use this code example for reporting examples. Also, you may see how to look up a location by its resource name or by its display name.

By resource name

Look up Mountain View, CA, by its resource name geoTargetConstants/1014044.

SELECT geo_target_constant.canonical_name,

  geo_target_constant.country_code,

  geo_target_constant.id,

  geo_target_constant.name,

  geo_target_constant.status,

  geo_target_constant.target_type

FROM geo_target_constant

WHERE geo_target_constant.resource_name = 'geoTargetConstants/1014044'

 

Look up "Mountain View" as a city name in the United States.

 

SELECT geo_target_constant.canonical_name,

  geo_target_constant.country_code,

  geo_target_constant.id,

  geo_target_constant.name,

  geo_target_constant.status,

  geo_target_constant.target_type

FROM geo_target_constant

WHERE geo_target_constant.country_code = 'US'

  AND geo_target_constant.target_type = 'City'

  AND geo_target_constant.name = 'Mountain View'

  AND geo_target_constant.status = 'ENABLED'

 

Following are the two endpoints to fetch the objects from Google Ads:


search

POST /v12/customers/{customerId}/googleAds:search

Returns all rows that match the search query.

searchStream

POST /v12/customers/{customerId}/googleAds:searchStream

Returns all rows that match the search stream query.


Let us know if you have any questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


 

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