curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/access/admin \
--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 all Google Ads customer access records from the database (admin only).
Args: _superuser_user: The superuser (injected dependency)
Returns: list[GoogleAdsCustomerAccessSchema]: List of all Google Ads customer access records, including company information and login customer IDs.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/access/admin \
--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)