curl --request GET \
--url http://localhost:8000/api/v1/google-ads/device-performance \
--header 'Authorization: Bearer <token>'{
"device_performance": [
{
"device_type": "<string>",
"impressions": 123,
"clicks": 123,
"ctr": 123,
"cost": 123,
"conversions": 123,
"cost_per_conversion": 123,
"conversion_rate": 123,
"percentage_of_total_impressions": 123
}
],
"time_period": "<string>",
"total_impressions": 123,
"total_clicks": 123,
"total_cost": 123,
"total_conversions": 123
}Retrieve performance metrics segmented by device type for a specified date range.
Args: customer_id: The Google Ads customer ID
campaign_id: Optional filter by campaign 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. oauth2_token: OAuth2 token for authentication
Returns: Performance metrics by device type
curl --request GET \
--url http://localhost:8000/api/v1/google-ads/device-performance \
--header 'Authorization: Bearer <token>'{
"device_performance": [
{
"device_type": "<string>",
"impressions": 123,
"clicks": 123,
"ctr": 123,
"cost": 123,
"conversions": 123,
"cost_per_conversion": 123,
"conversion_rate": 123,
"percentage_of_total_impressions": 123
}
],
"time_period": "<string>",
"total_impressions": 123,
"total_clicks": 123,
"total_cost": 123,
"total_conversions": 123
}The access token received from the authorization server in the OAuth 2.0 flow.
Optional specific Token ID