curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/ownerships \
--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 Google Ads customer ownerships for the current user from the database.
Args: current_user: The currently authenticated user (injected dependency)
Returns: list[GoogleAdsCustomerOwnershipSchema]: List of Google Ads customer ownerships for the User, including Google Ads Customers and login customer IDs.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/customers/ownerships \
--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)