curl --request GET \
--url http://localhost:8000/api/v1/google-ads/campaigns/csv \
--header 'Authorization: Bearer <token>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Retrieve Google Ads campaigns as CSV format.
Args: customer_id (int): The Google Ads customer ID to retrieve campaigns for 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. force_refresh (bool): Force refresh data from Google Ads API search: Optional text search filter oauth2_token (OAuth2Token): The OAuth2 token for the user approved_user (User): The authenticated user
Returns: StreamingResponse: CSV file containing campaigns data
curl --request GET \
--url http://localhost:8000/api/v1/google-ads/campaigns/csv \
--header 'Authorization: Bearer <token>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
1 - 200Optional specific Token ID
Successful Response