curl --request GET \
--url http://localhost:8000/api/v1/google-ads/user-locations \
--header 'Authorization: Bearer <token>'[
{
"campaign_id": 123,
"campaign_name": "<string>",
"metrics": {},
"ad_group_id": 123,
"ad_group_name": "<string>",
"most_specific_location": "<string>",
"city": "<string>",
"region": "<string>",
"postal_code": "<string>",
"location_type": "<string>"
}
]Retrieve Google Ads targeted campaign locations using user_location_view.
Args: customer_id: The Google Ads customer ID
campaign_id: Optional filter by campaign ID ad_group_id: Optional filter by ad group ID start_date (str): Start date for the data range (YYYY-MM-DD). Defaults to 30 days ago. end_date (str): End date for the data range (YYYY-MM-DD). Defaults to today. search: Optional text search filter oauth2_token: OAuth2 token for authentication
Returns: List of user location data with metrics aggregated over the period.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads/user-locations \
--header 'Authorization: Bearer <token>'[
{
"campaign_id": 123,
"campaign_name": "<string>",
"metrics": {},
"ad_group_id": 123,
"ad_group_name": "<string>",
"most_specific_location": "<string>",
"city": "<string>",
"region": "<string>",
"postal_code": "<string>",
"location_type": "<string>"
}
]The access token received from the authorization server in the OAuth 2.0 flow.
1 - 200Optional specific Token ID