curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/access \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"company_id": 123,
"company_name": "<string>",
"google_ads_customer": {
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true,
"is_active": true,
"is_deleted": false
},
"is_active": true,
"is_deleted": false,
"login_customer_id": 123
}
]Get Google Ads customers accessible to the current user through company memberships.
Args: current_user: The currently authenticated user (injected dependency)
Returns: list[GoogleAdsCustomerAccessSchema]: List of Google Ads customers accessible to the user through their company memberships, including company information.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/access \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"company_id": 123,
"company_name": "<string>",
"google_ads_customer": {
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true,
"is_active": true,
"is_deleted": false
},
"is_active": true,
"is_deleted": false,
"login_customer_id": 123
}
]The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The company ID that provides access
The company name that provides access
The Google Ads customer
Show child attributes
The login customer ID (optional)