Skip to main content
GET
/
api
/
v1
/
google-ads
/
customers
Get Google Ads Customers
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
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

token_id
integer | null

Response

Successful Response

The schema for a response of Google Ads customers.

hierarchical_accounts
ManagerAccountSchema · object[]
required
regular_accounts
CustomerDataSchema · object[]
required