curl --request GET \
--url http://localhost:8000/api/v1/google-ads/customers \
--header 'Authorization: Bearer <token>'{
"hierarchical_accounts": [
{
"manager_account": {
"customer_id": 123,
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true
},
"client_accounts": [
{
"customer_id": 123,
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true
}
]
}
],
"regular_accounts": [
{
"customer_id": 123,
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true
}
]
}Retrieve all available Google Ads customer IDs organized hierarchically by manager accounts.
Args: oauth2_token (OAuth2Token): The OAuth2 token for the user current_user (User): The authenticated user
Returns: List of manager accounts with their associated client accounts
curl --request GET \
--url http://localhost:8000/api/v1/google-ads/customers \
--header 'Authorization: Bearer <token>'{
"hierarchical_accounts": [
{
"manager_account": {
"customer_id": 123,
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true
},
"client_accounts": [
{
"customer_id": 123,
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true
}
]
}
],
"regular_accounts": [
{
"customer_id": 123,
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The schema for a response of Google Ads customers.
Show child attributes
The schema for a customer data.
Show child attributes
Show child attributes