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.
Authorizations
Body
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.
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.
adhesion, anchor, app-banner, app-interstitial, app-open, iab, in-article, in-image, interstitial, pixel, side-rail, video-3p, video 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.
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.
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.
ci_dynamic, google_optimised, manual 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.
in, under, top, bottom, responsive, left, right