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

# Obtenir une publicité suivie

> Lisez une publicité avec ses dates et ses créations archivées.



## OpenAPI

````yaml GET /v1/ad-watches/{id}/ads/{adKey}
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/ad-watches/{id}/ads/{adKey}:
    get:
      tags:
        - Ad watches
      summary: Get a watched ad
      description: >-
        One ad of a watch with its dates, the ad as of its last content change
        and its archived creatives.
      operationId: getAdWatchAd
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Watch id from GET /v1/ad-watches.
        - name: adKey
          in: path
          required: true
          schema:
            type: string
          description: The ad's adKey, its library id.
      responses:
        '200':
          description: The ad.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdWatchAdResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/AdWatchNotFound'
components:
  schemas:
    AdWatchAdResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          const: true
        data:
          type: object
          properties:
            ad:
              $ref: '#/components/schemas/AdWatchAd'
          required:
            - ad
    AdWatchAd:
      type: object
      properties:
        adKey:
          type: string
          description: The ad's library id.
        libraryId:
          type: string
        platform:
          $ref: '#/components/schemas/AdWatchPlatform'
        advertiserId:
          type:
            - string
            - 'null'
        advertiserName:
          type:
            - string
            - 'null'
        format:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - active
            - stopped
        baseline:
          type: boolean
          description: >-
            True when the first run recorded the ad. Those ads are never listed
            as new.
        firstSeenAt:
          type: string
          format: date-time
        lastSeenAt:
          type: string
          format: date-time
        stoppedAt:
          type:
            - string
            - 'null'
          format: date-time
        startDate:
          type:
            - string
            - 'null'
          format: date
          description: A day in UTC, as the library publishes it.
        endDate:
          type:
            - string
            - 'null'
          format: date
          description: A day in UTC, as the library publishes it.
        ad:
          type: object
          additionalProperties: true
          description: >-
            The ADS search ad as it stood when its content last changed,
            unchanged. Its fields are those of the platform's search response.
        media:
          type: array
          items:
            $ref: '#/components/schemas/AdWatchMedia'
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    AdWatchPlatform:
      type: string
      enum:
        - meta_ad_library
        - google_ads_transparency
        - linkedin_ad_library
        - tiktok_ad_library
      description: >-
        The ad library a watch reads. tiktok_creative_center is a ranked sample
        of top ads and is rejected with 400 VALIDATION_ERROR.
    AdWatchMedia:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - image
            - video
            - poster
          description: poster is a video's preview image.
        status:
          type: string
          enum:
            - pending
            - archived
            - failed
            - skipped
        reason:
          type:
            - string
            - 'null'
          description: Why a file is failed or skipped, such as too_large or quota.
        archivedUrl:
          type:
            - string
            - 'null'
          description: The address that serves the file once status is archived.
        contentType:
          type:
            - string
            - 'null'
        bytes:
          type:
            - integer
            - 'null'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  responses:
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: MISSING_API_KEY
              message: Missing or invalid API key
              timestamp: '2026-07-09T04:12:00.000Z'
    AdWatchNotFound:
      description: >-
        No ad watch, ad, event or archived file with that id for this key. A
        watch owned by another account is reported the same way rather than as a
        403.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: NOT_FOUND
              message: No ad watch with that id
              timestamp: '2026-11-23T09:00:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.