> ## 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 Ad Schedule

> Retrieve ad schedule targeting criteria.

Queries campaign_criterion directly so newly created schedules
appear immediately without needing performance data.

Args:
    customer_id: The Google Ads customer ID
    campaign_id: Optional filter by campaign ID
    search: Optional text search filter
    exclude_removed: Exclude REMOVED entities from results (default: False)
    oauth2_token: OAuth2 token for authentication

Returns:
    List of ad schedule targeting criteria.



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/google-ads/ad-schedule
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/ad-schedule:
    get:
      tags:
        - Google Ads
      summary: Get Ad Schedule
      description: |-
        Retrieve ad schedule targeting criteria.

        Queries campaign_criterion directly so newly created schedules
        appear immediately without needing performance data.

        Args:
            customer_id: The Google Ads customer ID
            campaign_id: Optional filter by campaign ID
            search: Optional text search filter
            exclude_removed: Exclude REMOVED entities from results (default: False)
            oauth2_token: OAuth2 token for authentication

        Returns:
            List of ad schedule targeting criteria.
      operationId: get_ad_schedule_api_v1_google_ads_ad_schedule_get
      parameters:
        - name: customer_id
          in: query
          required: true
          schema:
            type: integer
            title: Customer Id
        - name: campaign_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Campaign Id
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 1
                maxLength: 200
              - type: 'null'
            title: Search
        - name: exclude_removed
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Exclude Removed
        - 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:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/api__google_ads__schemas__AdScheduleSchema
                title: Response Get Ad Schedule Api V1 Google Ads Ad Schedule Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    api__google_ads__schemas__AdScheduleSchema:
      properties:
        campaign_id:
          type: integer
          title: Campaign Id
        campaign_name:
          type: string
          title: Campaign Name
        day_of_week:
          type: string
          title: Day Of Week
        start_hour:
          type: integer
          title: Start Hour
        start_minute:
          type: integer
          title: Start Minute
          default: 0
        end_hour:
          type: integer
          title: End Hour
        end_minute:
          type: integer
          title: End Minute
          default: 0
        day_time:
          type: string
          title: Day Time
        bid_modifier:
          type: number
          title: Bid Modifier
        metrics:
          additionalProperties: true
          type: object
          title: Metrics
        criterion_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Criterion Id
        resource_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Resource Name
      type: object
      required:
        - campaign_id
        - campaign_name
        - day_of_week
        - start_hour
        - end_hour
        - day_time
        - bid_modifier
        - metrics
      title: AdScheduleSchema
      description: Schema for Ad Schedule data
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````