> ## 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 Assets

> Retrieve assets used in ads, linked via campaigns.

Args:
    customer_id: The Google Ads customer ID

    asset_type: Optional filter by asset type (TEXT, IMAGE, etc.)
    campaign_id: Optional filter by campaign ID
    performance_label: Optional filter by performance (BEST, GOOD, LOW, PENDING, UNSPECIFIED, UNKNOWN, LEARNING)
    limit: Maximum number of assets to return
    exclude_removed: Exclude REMOVED entities from results (default: False)
    oauth2_token: OAuth2 token for authentication

Returns:
    List of assets with performance data (from campaign context)



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/google-ads/assets
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/assets:
    get:
      tags:
        - Google Ads
      summary: Get Assets
      description: |-
        Retrieve assets used in ads, linked via campaigns.

        Args:
            customer_id: The Google Ads customer ID

            asset_type: Optional filter by asset type (TEXT, IMAGE, etc.)
            campaign_id: Optional filter by campaign ID
            performance_label: Optional filter by performance (BEST, GOOD, LOW, PENDING, UNSPECIFIED, UNKNOWN, LEARNING)
            limit: Maximum number of assets to return
            exclude_removed: Exclude REMOVED entities from results (default: False)
            oauth2_token: OAuth2 token for authentication

        Returns:
            List of assets with performance data (from campaign context)
      operationId: get_assets_api_v1_google_ads_assets_get
      parameters:
        - name: customer_id
          in: query
          required: true
          schema:
            type: integer
            title: Customer Id
        - name: asset_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Asset Type
        - name: campaign_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Campaign Id
        - name: performance_label
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Performance Label
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            title: Limit
        - 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/AssetSchema'
                title: Response Get Assets Api V1 Google Ads Assets Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    AssetSchema:
      properties:
        asset_id:
          type: string
          title: Asset Id
        asset_type:
          type: string
          title: Asset Type
        asset_name:
          type: string
          title: Asset Name
        asset_source:
          type: string
          title: Asset Source
        performance:
          type: string
          title: Performance
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Url
        dimension:
          anyOf:
            - type: string
            - type: 'null'
          title: Dimension
      type: object
      required:
        - asset_id
        - asset_type
        - asset_name
        - asset_source
        - performance
      title: AssetSchema
      description: Schema for Asset 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

````