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

# Create an ad unit

> Creates a config (ad unit) for the publisher. If the publisher's tag is live the new config is saved paused (status 0), otherwise it is saved active; no tag build is queued either way, so it reaches the live tag only when it is enabled or the tag is next rebuilt. For `app-` units a string `target` creates a new app placement. It doesn't set integration mapping: set the config's mapping with `POST /v1/mapping/apply`. When the user isn't an admin, a notice is posted to the team's Slack.



## OpenAPI

````yaml /openapi.json post /v1/tag/{uid}/config
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality.


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    ## Errors any endpoint can return

    Every signed-in endpoint can also return these, so they aren't listed on
    each one:


    - `401` Unauthorized: no valid token was sent. It's missing, invalid,
    expired or revoked.

    - `403` Forbidden with `code` `session_invalid`: your user or organisation
    no longer exists, or you were removed from the organisation. Sign in again.

    - `403` Forbidden with `code` `insufficient_scope` ("This sign-in is
    read-only"): an OAuth (MCP) sign-in with read access tried to make a change.

    - `403` Forbidden with `code` `organisation_unavailable`: an OAuth (MCP)
    sign-in has lost access to its organisation. Switch to another organisation.

    - `503` Service Unavailable: "System is down for scheduled maintenance". Try
    again later.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Publisher
  - name: Publisher/Publisher Tag
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: Publisher/Publisher Stack
  - name: Publisher/Experiment
  - name: Publisher/Publisher Meta
  - name: Publisher/Debugging
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Integration
  - name: Integration/Authentication
  - name: Integration/Mapping
  - name: Mapping
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Benchmarking
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Campaign Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Audience
  - name: Audience/Segment
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: User
  - name: User/Account
  - name: Billing
  - name: Billing/Profile
  - name: Billing/Invoice
  - name: Audit Log
  - name: Search
  - name: Set-up
  - name: public
paths:
  /v1/tag/{uid}/config:
    post:
      tags:
        - Publisher/Config (Ad unit)
        - public
      summary: Create an ad unit
      description: >-
        Creates a config (ad unit) for the publisher. If the publisher's tag is
        live the new config is saved paused (status 0), otherwise it is saved
        active; no tag build is queued either way, so it reaches the live tag
        only when it is enabled or the tag is next rebuilt. For `app-` units a
        string `target` creates a new app placement. It doesn't set integration
        mapping: set the config's mapping with `POST /v1/mapping/apply`. When
        the user isn't an admin, a notice is posted to the team's Slack.
      operationId: createAdUnit
      parameters:
        - name: uid
          in: path
          description: Publisher ID (uid).
          required: true
          example: ''
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: >-
                The config. Only `unit`, `enabled` and `sizes` are checked by
                validation; every other field is stored as sent (apart from
                `unit` and `stack`, which are stored separately), so unknown
                fields are kept. That includes a `mapping` key, which is stored
                in the config like any other unknown field and sets no mapping.
              properties:
                unit:
                  title: Ad unit type
                  type: string
                  enum:
                    - adhesion
                    - anchor
                    - app-banner
                    - app-interstitial
                    - app-open
                    - iab
                    - in-article
                    - in-image
                    - interstitial
                    - pixel
                    - side-rail
                    - video-3p
                    - video
                  description: >-
                    The kind of ad unit. Units starting `app-` are for the App
                    SDK and use `target` as a placement. adhesion, anchor,
                    interstitial, pixel and side-rail always target the page
                    body. Values: `adhesion` = Adhesion (sticky banner),
                    `anchor` = Anchor (GPT anchor), `app-banner` = App banner,
                    `app-interstitial` = App interstitial, `app-open` = App open
                    ad, `iab` = IAB display, `in-article` = In-article,
                    `in-image` = In-image, `interstitial` = Interstitial,
                    `pixel` = Pixel, `side-rail` = Side rail, `video-3p` =
                    Third-party video, `video` = Video player.
                label:
                  title: Label
                  description: >-
                    Optional name to identify the config in lists and
                    experiments. Saved as null when left out.
                  type: string
                  nullable: true
                stack:
                  title: Ad stack
                  type: integer
                  description: >-
                    ID of the ad stack (demand set-up) this unit uses. Saved as
                    null when left out.
                enabled:
                  title: Enabled
                  type: boolean
                  description: >-
                    Accepted by validation. On create it is stored inside the
                    config and does not set the status. On update, sending it
                    switches to the status-only path (see the operation
                    description).
                target:
                  title: Target
                  description: >-
                    Where the unit goes. For web units, a CSS selector for the
                    page element to inject into (required unless the unit always
                    targets the body or `single_serve` is true). For `app-`
                    units, the ID of an existing app placement (integer), or a
                    new placement title (string) which creates that placement.
                    Forced to `body` for adhesion, anchor, interstitial, pixel
                    and side-rail.
                  oneOf:
                    - type: string
                    - type: integer
                target_injection:
                  title: Inject ad
                  type: string
                  enum:
                    - before
                    - after
                    - inside
                  default: after
                  description: >-
                    Where the ad goes relative to each matched target element.
                    Values: `before` = Before target, `after` = After target,
                    `inside` = Inside target.
                target_argumentation:
                  title: Body target argumentation
                  type: string
                  description: >-
                    For units that target the body: optional CSS selector suffix
                    that restricts the body target. Several can be
                    comma-separated.
                target_conditional:
                  title: Target conditional
                  type: string
                  description: >-
                    Advanced: a JavaScript expression returning a boolean that
                    must be true for a target match. The dashboard only lets
                    users with the `advanced.developer` permission edit it; the
                    API doesn't check.
                limit:
                  title: Limit
                  description: >-
                    Maximum number of matched targets to fill. Empty string
                    means no limit. Pixel units always use 1, and single-serve
                    units default to 1.
                  oneOf:
                    - type: integer
                    - type: string
                single_serve:
                  title: Single serve
                  type: boolean
                  default: false
                  description: >-
                    When true, `target` is replaced with a unique selector
                    `#scit__<unit>-<config id>` that the publisher places on the
                    page.
                sizes:
                  title: Sizes
                  type: object
                  description: >-
                    Ad sizes per device. Used by iab, in-article, in-image,
                    adhesion, anchor, interstitial and side-rail units.
                  properties:
                    desktop:
                      title: Desktop sizes
                      type: array
                      description: >-
                        Ad sizes allowed on desktop. Each is WIDTHxHEIGHT
                        (300x250), `fluid`, or a size using the {INSTANCE_COUNT}
                        or {KEY_VALUE:key} macros.
                      items:
                        type: string
                        pattern: >-
                          ^(?:(?:[0-9]|\{INSTANCE_COUNT\}|\{KEY_VALUE:[^}]+\})+x(?:[0-9]|\{INSTANCE_COUNT\}|\{KEY_VALUE:[^}]+\})+|fluid)$
                    tablet:
                      title: Tablet sizes
                      type: array
                      description: >-
                        Ad sizes allowed on tablet. Each is WIDTHxHEIGHT
                        (300x250), `fluid`, or a size using the {INSTANCE_COUNT}
                        or {KEY_VALUE:key} macros.
                      items:
                        type: string
                        pattern: >-
                          ^(?:(?:[0-9]|\{INSTANCE_COUNT\}|\{KEY_VALUE:[^}]+\})+x(?:[0-9]|\{INSTANCE_COUNT\}|\{KEY_VALUE:[^}]+\})+|fluid)$
                    mobile:
                      title: Mobile sizes
                      type: array
                      description: >-
                        Ad sizes allowed on mobile. Each is WIDTHxHEIGHT
                        (300x250), `fluid`, or a size using the {INSTANCE_COUNT}
                        or {KEY_VALUE:key} macros.
                      items:
                        type: string
                        pattern: >-
                          ^(?:(?:[0-9]|\{INSTANCE_COUNT\}|\{KEY_VALUE:[^}]+\})+x(?:[0-9]|\{INSTANCE_COUNT\}|\{KEY_VALUE:[^}]+\})+|fluid)$
                size:
                  title: Pixel size
                  type: string
                  description: Size for pixel units, as WIDTHxHEIGHT (1x1).
                device_filter:
                  title: Device filter
                  type: object
                  description: >-
                    Limit by device type. `type` decides whether the matches are
                    included or excluded; empty `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                        enum:
                          - mobile
                          - tablet
                          - desktop
                      description: Values to match.
                browser_filter:
                  title: Browser filter
                  type: object
                  description: >-
                    Limit by browser. Web units only. Values the dashboard
                    offers: chrome, safari, firefox, edge, ie, opera, yandex.
                    `type` decides whether the matches are included or excluded;
                    empty `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                      description: Values to match.
                geo_filter:
                  title: Country filter
                  type: object
                  description: >-
                    Limit by visitor country. Matches are ISO 3166-1 alpha-2
                    country codes in upper case, such as GB or US. `type`
                    decides whether the matches are included or excluded; empty
                    `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                      description: Values to match.
                region_filter:
                  title: Region filter
                  type: object
                  description: >-
                    Limit by continent. `type` decides whether the matches are
                    included or excluded; empty `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                        enum:
                          - AF
                          - AN
                          - AS
                          - OC
                          - EU
                          - NA
                          - SA
                        description: >-
                          Values: `AF` = Africa, `AN` = Antarctica, `AS` = Asia,
                          `OC` = Oceania, `EU` = Europe, `NA` = North America,
                          `SA` = South America.
                      description: Values to match.
                audience_filter:
                  title: Audience filter
                  type: object
                  description: >-
                    Limit by audience segment. Matches are audience segment IDs.
                    `type` decides whether the matches are included or excluded;
                    empty `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                      description: Values to match.
                url_filter:
                  title: URL filter
                  type: object
                  description: >-
                    Limit by page path. Matches are paths such as /pets/dogs,
                    and a trailing * matches anything under a path (/pets/*).
                    `type` decides whether the matches are included or excluded;
                    empty `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                      description: Values to match.
                viewport_filter:
                  title: Viewport filter
                  type: object
                  description: >-
                    Limit by viewport width in pixels. Matches are comparisons
                    using >, <, >=, <=, ≥ or ≤ followed by a width, such as
                    >=1024px or <728px. Use one lower and one upper bound at
                    most. `type` decides whether the matches are included or
                    excluded; empty `matches` means no filtering.
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                      description: Values to match.
                os_filter:
                  title: Operating system filter
                  type: object
                  description: >-
                    Limit by operating system. Values the dashboard offers:
                    android, ios. `type` decides whether the matches are
                    included or excluded; empty `matches` means no filtering.
                    Stored but not applied to web units by the current tag build
                    (app units only).
                  properties:
                    type:
                      title: Include or exclude
                      type: string
                      enum:
                        - include
                        - exclude
                      default: include
                      description: >-
                        Whether the unit shows only where a match is found
                        (include) or everywhere except matches (exclude).
                    matches:
                      title: Matches
                      type: array
                      items:
                        type: string
                      description: Values to match.
                start:
                  title: Start
                  type: string
                  description: >-
                    Optional schedule start as a date-time string or Unix
                    timestamp. The unit only serves from this time.
                end:
                  title: End
                  type: string
                  description: >-
                    Optional schedule end as a date-time string or Unix
                    timestamp. The unit stops serving after this time.
                floors_model:
                  title: Floors model
                  type: string
                  enum:
                    - ci_dynamic
                    - google_optimised
                    - manual
                  default: ci_dynamic
                  description: >-
                    How the price floor is set. Dynamic floors are used when
                    left out; `manual` uses `floor`; `google_optimised` sets no
                    floor. Values: `ci_dynamic` = Dynamic floors,
                    `google_optimised` = Google Optimised, `manual` = Manual.
                floor:
                  title: Manual floor
                  type: number
                  minimum: 0
                  description: >-
                    Floor price in GBP. Only used when `floors_model` is
                    `manual`.
                refresh:
                  title: Refresh (Reignite)
                  type: boolean
                  default: false
                  description: >-
                    Whether the unit refreshes while in view (every 35 seconds
                    unless `refresh_duration` is set).
                refresh_duration:
                  title: Refresh duration
                  type: integer
                  minimum: 10
                  description: >-
                    Seconds before the unit is considered for refresh. Values
                    under 10 are raised to 10.
                max_refresh_count:
                  title: Max refresh count
                  type: integer
                  minimum: 0
                  description: Maximum number of refreshes. Unlimited when left out or 0.
                refresh_buffer:
                  title: Refresh buffer
                  type: string
                  description: >-
                    Distance (such as 200px or 20%) at which to refresh before
                    the default 50% in-view threshold.
                in_view:
                  title: Only load when in view
                  type: boolean
                  default: true
                  description: >-
                    Lazy-load the unit when it nears the viewport. Ignored for
                    adhesion, anchor, interstitial, side-rail and pixel units,
                    which always load immediately.
                in_view_buffer:
                  title: In-view buffer
                  description: >-
                    Distance from the viewport at which to start loading, as
                    pixels (200 or 200px) or a percentage (50%).
                  oneOf:
                    - type: string
                    - type: integer
                key:
                  title: Custom key
                  type: string
                  description: >-
                    Custom key-value key passed to the ad server for this unit.
                    Sent with `value`. The dashboard limits it to 25 characters.
                value:
                  title: Custom value
                  type: string
                  description: >-
                    Custom key-value value passed with `key`. The dashboard
                    limits it to 25 characters.
                ymal_text:
                  title: Prefix text
                  type: string
                  description: Text shown above the ad, such as ADVERTISEMENT.
                location:
                  title: Location
                  type: string
                  enum:
                    - in
                    - under
                    - top
                    - bottom
                    - responsive
                    - left
                    - right
                  description: >-
                    Placement on the page: in or under for in-image; top, bottom
                    or responsive for anchor; left or right for side-rail.
                    Values: `in` = In image, `under` = Under image, `top` = Top,
                    `bottom` = Bottom, `responsive` = Responsive (top on mobile,
                    bottom on desktop), `left` = Left, `right` = Right.
                reserve_space:
                  title: Reserve space
                  type: boolean
                  description: 'iab units: reserve the ad''s height before it loads.'
                relocate:
                  title: Relocate on mobile
                  type: boolean
                  description: 'Adhesion units: use the responsive location.'
                load_on_scroll:
                  title: Load on scroll
                  type: boolean
                  description: 'Adhesion units: wait for the first scroll before loading.'
                closure_persist:
                  title: Persist closure for session
                  type: boolean
                  description: 'Adhesion units: once closed, stay closed for the session.'
                disable_branding:
                  title: Disable unit branding
                  type: boolean
                  description: >-
                    Adhesion, in-image and third-party video units: hide unit
                    branding.
                disable_adhesion_bg:
                  title: Disable background
                  type: boolean
                  description: 'Adhesion units: remove the background behind the ad.'
                every_other:
                  title: Every other image
                  type: boolean
                  description: 'In-image units: only use every other matched image.'
                behaviour:
                  title: Behaviour
                  type: string
                  enum:
                    - static
                    - scroll-to-stick
                    - click-to-stick
                  description: >-
                    Third-party video units: how the player sticks. Values:
                    `static` = Static, `scroll-to-stick` = Stick-on-scroll,
                    `click-to-stick` = Click-to-stick.
                position:
                  title: Sticky position
                  type: string
                  enum:
                    - bottom-left
                    - bottom-right
                    - bottom
                    - left
                    - right
                    - top-left
                    - top-right
                    - top
                  description: 'Third-party video units: where the player sticks.'
                always_play:
                  title: Always play
                  type: boolean
                  description: 'Third-party video units: keep playing out of view.'
                disable_audio:
                  title: Disable audio
                  type: boolean
                  description: 'Third-party video units: start muted.'
              additionalProperties: true
              required:
                - unit
            examples: {}
        required: true
      responses:
        '201':
          description: 'Created: The created config.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      domain:
                        type: string
                        description: Publisher domain.
                      id:
                        type: integer
                        description: Config ID.
                      uid:
                        type: integer
                        description: Publisher ID.
                      label:
                        description: Config label.
                        type: string
                        nullable: true
                      stack:
                        description: Ad stack ID.
                        type: integer
                        nullable: true
                      config:
                        type: object
                        additionalProperties: true
                        description: >-
                          The stored config: every field sent when it was saved
                          (except `stack`), plus `unit`. Empty filters are
                          returned as `{"type": "include", "matches": []}`.
                        properties:
                          unit:
                            type: string
                            enum:
                              - adhesion
                              - anchor
                              - app-banner
                              - app-interstitial
                              - app-open
                              - iab
                              - in-article
                              - in-image
                              - interstitial
                              - pixel
                              - side-rail
                              - video-3p
                              - video
                      revision:
                        type: integer
                        description: Starts at 1 and goes up by one on each full update.
                      date_added:
                        type: string
                        description: When the config was created (Y-m-d H:i:s).
                      date_updated:
                        type: string
                        description: When the config was last changed (Y-m-d H:i:s).
                      status:
                        type: integer
                        enum:
                          - 0
                          - 1
                        description: >-
                          Whether the config is live in the tag. Values: `0` =
                          Paused, `1` = Active.
                      in_experiment:
                        type: boolean
                        description: >-
                          Whether the config is a subject of a scheduled or live
                          experiment.
                  success:
                    type: boolean
                required:
                  - results
                  - success
              example:
                results:
                  domain: example.com
                  id: 8388
                  uid: 18620
                  label: MPU 1
                  stack: 338
                  config:
                    in_view: true
                    limit: 1
                    refresh: true
                    single_serve: false
                    floors_model: ci_dynamic
                    sizes:
                      desktop:
                        - 300x250
                      mobile:
                        - 300x250
                        - 320x50
                      tablet:
                        - 300x250
                    target: .article-body p
                    target_injection: after
                    url_filter:
                      matches:
                        - /my-account*
                      type: exclude
                    device_filter:
                      type: include
                      matches: []
                    ymal_text: ADVERTISEMENT
                    unit: iab
                  revision: 1
                  date_added: '2026-03-02 10:14:52'
                  date_updated: '2026-03-02 10:14:52'
                  status: 0
                  in_experiment: false
                success: true
          headers: {}
        '400':
          description: >-
            Bad Request: The body fails validation ("Form errors found: …"),
            such as an unknown `unit`, a bad size or a non-boolean `enabled`; or
            an `app-` unit has no `target` ("Bad request. Missing placement.")
            or a numeric `target` that isn't one of the publisher's placements
            ("Bad request. Invalid placement.").
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: User forbidden
          headers: {}
        '404':
          description: 'Not Found: The publisher doesn''t exist or you can''t access it.'
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Resource not found
          headers: {}
        '500':
          description: >-
            Internal Server Error: An unexpected error. The message includes a
            reference to quote to support.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                status: 500
                message: >-
                  An error occurred [4f2k], please try again shortly or contact
                  your account manager for further assistance.
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal API token from the platform's settings page, or an OAuth
        access token.

````

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