curl --request GET \
--url http://localhost:8000/api/v1/google-ads/demographic-performance \
--header 'Authorization: Bearer <token>'{
"demographic_performance": [
{
"demographic_type": "<string>",
"demographic_value": "<string>",
"impressions": 123,
"clicks": 123,
"ctr": 123,
"cost": 123,
"conversions": 123,
"cost_per_conversion": 123,
"conversion_rate": 123,
"percentage_of_total": 123
}
],
"time_period": "<string>"
}Retrieve performance metrics segmented by demographics for a specified date range.
Args: customer_id: The Google Ads customer ID
campaign_id: Optional filter by campaign ID demographic_type: Type of demographic data (AGE_RANGE, GENDER, PARENTAL_STATUS, HOUSEHOLD_INCOME). 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. oauth2_token: OAuth2 token for authentication
Returns: Performance metrics by demographic segment aggregated over the period.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads/demographic-performance \
--header 'Authorization: Bearer <token>'{
"demographic_performance": [
{
"demographic_type": "<string>",
"demographic_value": "<string>",
"impressions": 123,
"clicks": 123,
"ctr": 123,
"cost": 123,
"conversions": 123,
"cost_per_conversion": 123,
"conversion_rate": 123,
"percentage_of_total": 123
}
],
"time_period": "<string>"
}The access token received from the authorization server in the OAuth 2.0 flow.
AGE_RANGE, GENDER, PARENTAL_STATUS, HOUSEHOLD_INCOME Optional specific Token ID