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

# List ads (distinct creatives) running on a brand's prompts



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/brands/{brand_id}/ads
openapi: 3.0.1
info:
  title: Cognizo Public API
  version: v1
  description: >-
    Public REST API for Cognizo. Authenticate with an API key via the
    `X-API-KEY` header.
servers:
  - url: https://core.cognizo.ai
security:
  - apiKey: []
paths:
  /api/v2/brands/{brand_id}/ads:
    parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    get:
      tags:
        - Ads
      summary: List ads (distinct creatives) running on a brand's prompts
      operationId: list_brand_ads
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: page_size
          in: query
          required: false
          description: Default 25, max 100
          schema:
            type: integer
        - name: sort
          in: query
          required: false
          description: appearances|prompts|last_seen, prefix - for desc
          schema:
            type: string
        - name: filter[topic_ids]
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: filter[region_ids]
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: filter[provider_ids]
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: filter[advertiser_ids]
          in: query
          schema:
            type: array
            items:
              type: string
              format: uuid
          required: false
          style: form
          explode: true
        - name: filter[prompt_ids]
          in: query
          schema:
            type: array
            items:
              type: string
              format: uuid
          required: false
          style: form
          explode: true
        - name: filter[query]
          in: query
          required: false
          description: Free-text across title/body/advertiser
          schema:
            type: string
        - name: filter[ran_at_start]
          in: query
          required: false
          description: Default 90 days ago
          schema:
            type: string
            format: date-time
        - name: filter[ran_at_end]
          in: query
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: ad list with copy
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ad'
                  meta:
                    $ref: '#/components/schemas/pagination_meta'
                required:
                  - data
        '400':
          description: validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: brand not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '500':
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    ad:
      type: object
      properties:
        ad_id:
          type: string
          format: uuid
        advertiser_id:
          type: string
          format: uuid
        advertiser_name:
          type: string
        advertiser_domain:
          type: string
        title:
          type: string
          nullable: true
        body:
          type: string
          nullable: true
        image_url:
          type: string
          nullable: true
        target_url:
          type: string
          nullable: true
        appearance_count:
          type: integer
        prompt_count:
          type: integer
        first_seen_at:
          type: string
          format: date-time
          nullable: true
        last_seen_at:
          type: string
          format: date-time
          nullable: true
      required:
        - ad_id
        - advertiser_id
        - advertiser_name
        - advertiser_domain
        - appearance_count
        - prompt_count
    pagination_meta:
      type: object
      properties:
        page:
          type: integer
        page_size:
          type: integer
        total_items:
          type: integer
        total_pages:
          type: integer
        counts:
          type: object
          additionalProperties:
            type: integer
      required:
        - page
        - page_size
        - total_items
        - total_pages
    error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                $ref: '#/components/schemas/error_detail'
          required:
            - code
            - message
      required:
        - error
    error_detail:
      type: object
      properties:
        field:
          type: string
          nullable: true
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
        - field
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````