Hello Team,
I'm working with the Google Ads API V18 and need assistance with implementing the "Target locations nearby" functionality that exists in the Google Ads UI.
Currently, I can successfully use the GeoTargetConstantService to search for locations:
client = GoogleAdsClient.load_from_env(version="v18")
gtc_service = client.get_service("GeoTargetConstantService")
gtc_request = client.get_type("SuggestGeoTargetConstantsRequest")
gtc_request.country_code = "IN"
gtc_request.location_names.names.extend(['Delhi'])
results = gtc_service.suggest_geo_target_constants(gtc_request)
However, I cannot find an API endpoint that provides the same functionality as the "Target locations nearby" feature in the UI. For example, when searching for Delhi in the dashboard, it suggests nearby locations like Uttar Pradesh, Rajasthan, and Haryana with their respective reach numbers.
I have also thoroughly reviewed the
GeoTargetConstants API documentation, but there is no mention of any endpoint or parameter for retrieving nearby locations.
I've attached screenshots showing this UI feature in action. Could you please:
1. Confirm if there's an API endpoint for this nearby locations functionality
2. If available, provide documentation or examples for implementing this feature
3. If not available through direct API, suggest alternative approaches to achieve similar results
Thank you for your assistance.