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

# Get Competitor Ad History

> Months × ads projection of bounded stored snapshots for one competitor.

The SpyFu-style ad-history read shows which captured Google ads persisted
across months in the brand's current location/language cohort. It reads
stored snapshot rows only and incurs $0 of provider spend.



## OpenAPI

````yaml /openapi.json get /api/v1/brands/{brand_id}/dashboards/competitor-google-ads/history
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/dashboards/competitor-google-ads/history:
    get:
      tags:
        - Dashboards
        - Dashboards
      summary: Get Competitor Ad History
      description: >-
        Months × ads projection of bounded stored snapshots for one competitor.


        The SpyFu-style ad-history read shows which captured Google ads
        persisted

        across months in the brand's current location/language cohort. It reads

        stored snapshot rows only and incurs $0 of provider spend.
      operationId: >-
        get_competitor_ad_history_api_v1_brands__brand_id__dashboards_competitor_google_ads_history_get
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
        - name: competitor
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            description: competitor domain
            title: Competitor
          description: competitor domain
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompetitorAdHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CompetitorAdHistoryResponse:
      properties:
        competitor_domain:
          type: string
          title: Competitor Domain
        months:
          items:
            type: string
          type: array
          title: Months
        ads:
          items:
            $ref: '#/components/schemas/AdHistoryEntry'
          type: array
          title: Ads
        month_snapshot_counts:
          additionalProperties:
            type: integer
          type: object
          title: Month Snapshot Counts
        snapshot_count:
          type: integer
          title: Snapshot Count
          default: 0
        estimate_notice:
          type: string
          title: Estimate Notice
          default: >-
            Estimated — modelled from competitor paid keywords (DataForSEO). Not
            actual competitor spend.
      type: object
      required:
        - competitor_domain
        - months
        - ads
        - month_snapshot_counts
      title: CompetitorAdHistoryResponse
      description: >-
        Months × ads projection of stored snapshots (no provider calls).


        `months` is the contiguous calendar range over the bounded stored
        snapshot

        window for the brand's current location/language cohort. Inspect

        `month_snapshot_counts` before treating an empty month as a
        stored-snapshot

        absence: a zero count means that month has no snapshot.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdHistoryEntry:
      properties:
        ad_key:
          type: string
          title: Ad Key
        months:
          items:
            type: string
          type: array
          title: Months
        headline:
          anyOf:
            - type: string
            - type: 'null'
          title: Headline
        body_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Body Text
        landing_page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Landing Page Url
        creative_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Creative Url
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        first_seen:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: First Seen
        last_seen:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Last Seen
      type: object
      required:
        - ad_key
        - months
      title: AdHistoryEntry
      description: >-
        One captured Google ad's month-by-month presence across snapshots.


        Identity: `ad_key` is the provider `ad_id` when present, else a

        stable fallback hash over the stored creative fields — NEVER a
        positional

        index, which varies snapshot to snapshot and would fragment one ad into

        many rows.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````