curl --request POST \
--url http://localhost:8000/api/v1/google-ads/locations/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"google_ads_customer_id": 123,
"location_ids": [
123
],
"force_refresh": false
}
'[
{
"id": 123,
"name": "<string>",
"canonical_name": "<string>",
"type": "<string>",
"country_code": "<string>"
}
]Get location details for specific location IDs with caching.
This endpoint performs reverse lookup - converts location IDs to human-readable names. Returns full location details including name, canonical name, type, and country code. Results are cached for 30 days unless force_refresh is True.
curl --request POST \
--url http://localhost:8000/api/v1/google-ads/locations/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"google_ads_customer_id": 123,
"location_ids": [
123
],
"force_refresh": false
}
'[
{
"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
Successful Response