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

# Consultar o mapeamento de anúncios de um asset



## OpenAPI

````yaml reference/openapi.json GET /v1/assets/{asset_id}/ad-mapping
openapi: 3.1.0
info:
  title: Interactive Layers Context API
  description: >

    Interactive Layers reads what is said on your channel and turns it into ad
    signals.


    * **Signal mode** (`mode=signal`): your program is untouched; every break of
    the output manifest carries an
      `EXT-X-DATERANGE CLASS="com.interactivelayers.signal"` with the matching campaign ids, keywords, your external ids
      (e.g. SpringServe) and a brand-safety status, so your ad server can target the break.
    * **Live SSAI** (`mode=ssai`): supported live pipelines can stitch ads and
    in-band supers.

    * **Legacy URL scan**: enriched VOD manifest with signals; `ssai` adds
    supers. No ad segment replacement.

    * **Asset analysis and operations**: saved moments, campaign previews and
    airing/playback notifications.
      GAM profiles use client-side VAST/IMA. SpringServe profiles produce revision-bound SSAI signals;
      the OTTera transport remains pending external validation. Campaign synchronization is read-only.

    Authenticate with the `X-API-Key` header (keys are issued by Interactive
    Layers). Errors are `{"detail": "..."}`.

    Events can be polled (`GET /v1/events`) or pushed to a signed webhook (`PUT
    /v1/keys/me/webhook`).

    Content catalog and batch operations use their own scoped server key in
    `Authorization: Bearer …`.
  version: '1.2'
servers:
  - url: https://console.interactivelayers.com
security: []
tags:
  - name: AdRouter
    description: Advertising routing, simulation, delivery and reports per project.
  - name: Advertising providers
    description: >-
      GAM and SpringServe connections, profiles and read-only campaign
      synchronization.
  - name: Keys
    description: The calling API key and its signed webhook.
  - name: Campaigns
    description: >-
      Signal campaigns: categories, keywords and the external ids written into
      break markers when the context matches.
  - name: Sources
    description: >-
      Realtime sources (HLS or YouTube) in `signal` or `ssai` mode and their
      enriched output manifest.
  - name: Events
    description: 'Events of your sources: opportunities, break signals, brand-safety holds.'
  - name: Assets
    description: >-
      Create, list, retrieve, rename and delete private video assets. Use
      asset_id as the input to a VOD analysis.
  - name: VOD operations
    description: >-
      Evaluate campaigns from saved asset analyses, schedule airings and send
      playback notifications.
  - name: VOD
    description: >-
      Ahead-of-time VOD scans, faster than real time: transcript, opportunities,
      brand-safety holds, a targeting signal per break and the enriched VOD
      manifest.
paths:
  /v1/assets/{asset_id}/ad-mapping:
    get:
      tags:
        - Content credentials
        - GAM content export
      summary: Get Mapping
      operationId: get_mapping_v1_assets__asset_id__ad_mapping_get
      parameters:
        - name: asset_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
            title: Asset Id
        - name: integration_id
          in: query
          required: true
          schema:
            type: string
            pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
            title: Integration Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdMapping'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '410':
          description: Gone
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '413':
          description: Request Entity Too Large
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: Service Unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - ContentKey: []
components:
  schemas:
    AdMapping:
      properties:
        integration_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Integration Id
        video_id:
          type: string
          maxLength: 512
          minLength: 1
          pattern: ^[^\x00-\x20\x7f/]+$
          title: Video Id
        source_version:
          type: string
          maxLength: 2048
          minLength: 1
          title: Source Version
        existing:
          type: boolean
          title: Existing
        metadata_base_revision:
          anyOf:
            - type: string
              maxLength: 2048
              minLength: 1
            - type: 'null'
          title: Metadata Base Revision
        baseline:
          anyOf:
            - $ref: '#/components/schemas/VideoBaseline'
            - type: 'null'
        expected_mapping_revision:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Expected Mapping Revision
        mapping_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Mapping Id
        asset_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Asset Id
        mapping_revision:
          type: integer
          minimum: 1
          title: Mapping Revision
      additionalProperties: false
      type: object
      required:
        - integration_id
        - video_id
        - source_version
        - existing
        - expected_mapping_revision
        - mapping_id
        - asset_id
        - mapping_revision
      title: AdMapping
    Problem:
      additionalProperties: false
      properties:
        type:
          title: Type
          type: string
        title:
          type: string
          title: Title
        status:
          title: Status
          type: integer
        detail:
          title: Detail
          type: string
        instance:
          title: Instance
          type: string
        code:
          type: string
          title: Code
        request_id:
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Request Id
          type: string
        retryable:
          type: boolean
          title: Retryable
        errors:
          anyOf:
            - items:
                $ref: '#/components/schemas/FieldError'
              type: array
            - type: 'null'
          default: null
          title: Errors
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - request_id
        - retryable
      title: Problem
      type: object
    VideoBaseline:
      properties:
        title:
          type: string
          maxLength: 2048
          minLength: 1
          title: Title
        updateTime:
          type: string
          pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
          title: Updatetime
        status:
          type: string
          enum:
            - ACTIVE
            - BLOCKED
            - DELETED
          title: Status
        publishTime:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
            - type: 'null'
          title: Publishtime
        duration:
          anyOf:
            - type: string
              maxLength: 30
              pattern: ^\d+(?:\.\d{1,9})?s$
            - type: 'null'
          title: Duration
        cuePoints:
          anyOf:
            - items:
                type: string
                maxLength: 30
                pattern: ^\d+(?:\.\d{1,9})?s$
              type: array
              maxItems: 1000
            - type: 'null'
          title: Cuepoints
        thumbnailUrl:
          anyOf:
            - type: string
              maxLength: 2048
              minLength: 1
            - type: 'null'
          title: Thumbnailurl
        metadata:
          anyOf:
            - $ref: '#/components/schemas/VideoMetadata'
            - type: 'null'
        gracenoteMetadata:
          anyOf:
            - $ref: '#/components/schemas/Gracenote'
            - type: 'null'
        syndicationMetadata:
          anyOf:
            - $ref: '#/components/schemas/Syndication'
            - type: 'null'
        dynamicAdInsertionMetadata:
          anyOf:
            - $ref: '#/components/schemas/Dai'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - title
        - updateTime
        - status
      title: VideoBaseline
    FieldError:
      additionalProperties: false
      properties:
        pointer:
          title: Pointer
          type: string
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      required:
        - pointer
        - code
        - message
      title: FieldError
      type: object
    VideoMetadata:
      properties:
        keyValues:
          additionalProperties:
            anyOf:
              - type: string
              - items:
                  type: string
                type: array
          type: object
          title: Keyvalues
      additionalProperties: false
      type: object
      required:
        - keyValues
      title: VideoMetadata
    Gracenote:
      properties:
        gracenoteId:
          type: string
          pattern: ^(EP|MV|SP)[a-zA-Z0-9]+$
          title: Gracenoteid
        gracenoteSeriesId:
          anyOf:
            - type: string
              pattern: ^SH[a-zA-Z0-9]+$
            - type: 'null'
          title: Gracenoteseriesid
      additionalProperties: false
      type: object
      required:
        - gracenoteId
      title: Gracenote
    Syndication:
      properties:
        canonicalVideoContent:
          anyOf:
            - type: string
            - type: 'null'
          title: Canonicalvideocontent
        syndicatedVideoContentNames:
          anyOf:
            - $ref: '#/components/schemas/SyndicatedNames'
            - type: 'null'
      additionalProperties: false
      type: object
      title: Syndication
    Dai:
      properties:
        videoIngestUrlInfo:
          anyOf:
            - $ref: '#/components/schemas/VideoIngest'
            - type: 'null'
        mediaUpdateTime:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
            - type: 'null'
          title: Mediaupdatetime
        closedCaptionUrlInfo:
          anyOf:
            - items:
                $ref: '#/components/schemas/Caption'
              type: array
            - type: 'null'
          title: Closedcaptionurlinfo
        fwCaid:
          anyOf:
            - type: string
              maxLength: 2048
              minLength: 1
            - type: 'null'
          title: Fwcaid
      additionalProperties: false
      type: object
      title: Dai
    SyndicatedNames:
      properties:
        syndicatedVideoContent:
          items:
            type: string
          type: array
          title: Syndicatedvideocontent
      additionalProperties: false
      type: object
      required:
        - syndicatedVideoContent
      title: SyndicatedNames
    VideoIngest:
      properties:
        videoFormat:
          anyOf:
            - type: string
              enum:
                - VIDEO_FORMAT_UNSPECIFIED
                - HLS
                - DASH
            - type: 'null'
          title: Videoformat
        videoPreconditioned:
          anyOf:
            - type: string
              enum:
                - 'YES'
                - 'NO'
            - type: 'null'
          title: Videopreconditioned
        url:
          anyOf:
            - type: string
              maxLength: 2048
              minLength: 1
            - type: 'null'
          title: Url
      additionalProperties: false
      type: object
      title: VideoIngest
    Caption:
      properties:
        languageCode:
          anyOf:
            - type: string
              maxLength: 2048
              minLength: 1
            - type: 'null'
          title: Languagecode
        closedCaptionFormat:
          anyOf:
            - type: string
              enum:
                - CLOSED_CAPTION_FORMAT_UNSPECIFIED
                - TTML
                - WEB_VTT
            - type: 'null'
          title: Closedcaptionformat
        url:
          anyOf:
            - type: string
              maxLength: 2048
              minLength: 1
            - type: 'null'
          title: Url
      additionalProperties: false
      type: object
      title: Caption
  securitySchemes:
    ContentKey:
      type: http
      scheme: bearer

````

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