curl --request POST \
--url http://localhost:8000/api/v1/google-ads/locations/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"google_ads_customer_id": 123,
"query": "<string>",
"limit": 20,
"force_refresh": false
}
'{
"suggestions": [
{
"id": 123,
"name": "<string>",
"canonical_name": "<string>",
"type": "<string>",
"country_code": "<string>"
}
]
}Search for location suggestions using GeoTargetConstantService with caching.
This endpoint provides autocomplete functionality for location selection. Returns location IDs that can be used for keyword analysis and campaign creation. Results are cached for 7 days unless force_refresh is True.
curl --request POST \
--url http://localhost:8000/api/v1/google-ads/locations/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"google_ads_customer_id": 123,
"query": "<string>",
"limit": 20,
"force_refresh": false
}
'{
"suggestions": [
{
"id": 123,
"name": "<string>",
"canonical_name": "<string>",
"type": "<string>",
"country_code": "<string>"
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
Optional specific Token ID
Request schema for location search.
Successful Response
Response schema for location search.
List of location suggestions
Show child attributes