> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cattix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Google Ads Customers

> Retrieve all available Google Ads customer IDs organized hierarchically by manager accounts.

Args:
    oauth2_token (OAuth2Token): The OAuth2 token for the user

Returns:
    List of manager accounts with their associated client accounts



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/google-ads/customers
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/google-ads/customers:
    get:
      tags:
        - Google Ads
      summary: Get Google Ads Customers
      description: >-
        Retrieve all available Google Ads customer IDs organized hierarchically
        by manager accounts.


        Args:
            oauth2_token (OAuth2Token): The OAuth2 token for the user

        Returns:
            List of manager accounts with their associated client accounts
      operationId: get_google_ads_customers_api_v1_google_ads_customers_get
      parameters:
        - name: token_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Optional specific Token ID
            title: Token Id
          description: Optional specific Token ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAdsCustomersResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    GoogleAdsCustomersResponseSchema:
      properties:
        hierarchical_accounts:
          items:
            $ref: '#/components/schemas/ManagerAccountSchema'
          type: array
          title: Hierarchical Accounts
        regular_accounts:
          items:
            $ref: '#/components/schemas/CustomerDataSchema'
          type: array
          title: Regular Accounts
      type: object
      required:
        - hierarchical_accounts
        - regular_accounts
      title: GoogleAdsCustomersResponseSchema
      description: The schema for a response of Google Ads customers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ManagerAccountSchema:
      properties:
        manager_account:
          $ref: '#/components/schemas/CustomerDataSchema'
        client_accounts:
          items:
            $ref: '#/components/schemas/CustomerDataSchema'
          type: array
          title: Client Accounts
      type: object
      required:
        - manager_account
        - client_accounts
      title: ManagerAccountSchema
      description: The schema for a manager account.
    CustomerDataSchema:
      properties:
        customer_id:
          type: integer
          title: Customer Id
        descriptive_name:
          type: string
          title: Descriptive Name
        currency_code:
          type: string
          title: Currency Code
        time_zone:
          type: string
          title: Time Zone
        status:
          type: string
          title: Status
        manager:
          type: boolean
          title: Manager
      type: object
      required:
        - customer_id
        - descriptive_name
        - currency_code
        - time_zone
        - status
        - manager
      title: CustomerDataSchema
      description: The schema for a customer data.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````