> ## 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 Quality Scores

> Retrieve quality score data for keywords.

Args:
    customer_id: The Google Ads customer ID

    campaign_id: Optional filter by campaign ID
    ad_group_id: Optional filter by ad group ID
    min_quality_score: Minimum quality score to include
    limit: Maximum number of records to return
    oauth2_token: OAuth2 token for authentication

Returns:
    List of keywords with quality score data



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/google-ads/quality-scores
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/quality-scores:
    get:
      tags:
        - Google Ads
      summary: Get Quality Scores
      description: |-
        Retrieve quality score data for keywords.

        Args:
            customer_id: The Google Ads customer ID

            campaign_id: Optional filter by campaign ID
            ad_group_id: Optional filter by ad group ID
            min_quality_score: Minimum quality score to include
            limit: Maximum number of records to return
            oauth2_token: OAuth2 token for authentication

        Returns:
            List of keywords with quality score data
      operationId: get_quality_scores_api_v1_google_ads_quality_scores_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: ad_group_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Ad Group Id
        - name: min_quality_score
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 10
                minimum: 1
              - type: 'null'
            title: Min Quality Score
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 100
            title: Limit
        - 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/QualityScoreData'
                title: >-
                  Response Get Quality Scores Api V1 Google Ads Quality Scores
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    QualityScoreData:
      properties:
        keyword_id:
          type: string
          title: Keyword Id
        keyword_text:
          type: string
          title: Keyword Text
        match_type:
          type: string
          title: Match Type
        quality_score:
          type: integer
          title: Quality Score
        ad_relevance:
          type: string
          title: Ad Relevance
        landing_page_experience:
          type: string
          title: Landing Page Experience
        expected_ctr:
          type: string
          title: Expected Ctr
        campaign_id:
          type: string
          title: Campaign Id
        campaign_name:
          type: string
          title: Campaign Name
        ad_group_id:
          type: string
          title: Ad Group Id
        ad_group_name:
          type: string
          title: Ad Group Name
      type: object
      required:
        - keyword_id
        - keyword_text
        - match_type
        - quality_score
        - ad_relevance
        - landing_page_experience
        - expected_ctr
        - campaign_id
        - campaign_name
        - ad_group_id
        - ad_group_name
      title: QualityScoreData
      description: Quality score data for keywords
    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

````