curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/ownerships/admin \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"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 ownerships from the database (admin only).
Args: _superuser_user: The superuser (injected dependency)
Returns: list[GoogleAdsCustomerOwnershipSchema]: List of all Google Ads customer ownerships, including Google Ads Customers and login customer IDs.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/ownerships/admin \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"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 Google Ads customer
Show child attributes
The customer ID
The descriptive name of the customer
The currency code
The time zone
The status of the customer
Whether the customer is a manager account
The login customer ID (optional)