Skip to main content
PATCH
Update Ad Unit

Authorizations

Authorization
string
header
required

Bearer authentication. Pass the access token in the Authorization: Bearer <token> header.

Path Parameters

ad_unit_id
string<uuid>
required

Body

application/json

Request body for PATCH /ad-units/{id}.

  • code is immutable — not accepted.
  • is_active is managed via /activate and /deactivate — not accepted.
  • When partial_safe_update_only=True, only safe fields are applied: name, description, ext.target_ecpm, ext.default_cpa, ext.default_cpc, ext.bcat.
ad_unit_sizes
AdUnitSize · object[] | null

Size metadata for targeting.

description
string | null

Ad unit description.

display
DisplayPlacement · object | null

Display placement configuration.

ext
AdUnitExt · object | null

Ad unit extension fields.

gpid
string | null

Canonical Placement ID for OpenRTB imp.ext.gpid.

instl
enum<integer> | null

Interstitial flag. 0 = no, 1 = yes.

Available options:
0,
1
name
string | null

Ad unit display name. (1-255 chars)

Required string length: 1 - 255
native
NativePlacement · object | null

Native placement configuration.

partial_safe_update_only
boolean | null
default:false

When true, applies only fields that are safe to update while the ad unit is live:

  1. Name
  2. Description
  3. Target eCPM
  4. Default CPA
  5. Default CPC
  6. Recommendation configuration
  7. Blocked advertiser categories
recommendation
RecommendationPlacement · object | null

Recommendation configuration.

siteid
string | null

Site identifier associated with this ad unit.

video
VideoPlacement · object | null

Video placement configuration.

Response

Successful Response

Response schema for AdUnit mutation operations (create/patch).

code
string
required

Ad unit code identifier.

created_by
string<uuid>
required

The ID of the user who created the ad unit.

id
string<uuid>
required

ID of the ad unit (uuid7)

name
string
required

Name of the ad unit.

path
string
required

Hierarchical path of the ad unit (e.g., "parent_id/child_id").

ad_unit_sizes
AdUnitSize · object[] | null

Targeting metadata sizes Distinct from display/video.w/h which govern serving and rendering.

created_at
string<date-time> | null
description
string | null

Description of the ad unit.

display
DisplayPlacement · object

Display placement configuration.

ext
AdUnitExt · object

Ad unit extension fields.

gpid
string | null

Canonical Placement ID for OpenRTB imp.ext.gpid.

instl
enum<integer>
default:0

Indicates if this is an interstitial placement, where 0 = no, 1 = yes. Applies across display, video, and native.

Available options:
0,
1
is_active
boolean | null

Whether the ad unit is active.

native
NativePlacement · object

Based on OpenRTB Native Ads 1.2 Native Markup Request Object, not the AdCOM standard native format

no
integer | null
recommendation
RecommendationPlacement · object
updated_at
string<date-time> | null
video
VideoPlacement · object

Video placement configuration.