Update Ad Unit
Updates the editable fields of an ad unit. code and parent_id cannot be changed.
Access Control:
Admin and Operator accounts have full access (create/read/update/delete) to ad unit resources.
Advertiser accounts have no access to this endpoint — see GET /ad-units/targets for the
lightweight, allocation-target-selection view available to advertisers.
Authorizations
Bearer authentication. Pass the access token in the Authorization: Bearer <token> header.
Path Parameters
Body
Request body for PATCH /ad-units/{id}.
codeis immutable — not accepted.is_activeis 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.
Size metadata for targeting.
Ad unit description.
Display placement configuration.
Ad unit extension fields.
Canonical Placement ID for OpenRTB imp.ext.gpid.
Interstitial flag. 0 = no, 1 = yes.
0, 1 Ad unit display name. (1-255 chars)
1 - 255Native placement configuration.
When true, applies only fields that are safe to update while the ad unit is live:
- Name
- Description
- Target eCPM
- Default CPA
- Default CPC
- Recommendation configuration
- Blocked advertiser categories
Recommendation configuration.
Site identifier associated with this ad unit.
Video placement configuration.
Response
Successful Response
Response schema for AdUnit mutation operations (create/patch).
Ad unit code identifier.
The ID of the user who created the ad unit.
ID of the ad unit (uuid7)
Name of the ad unit.
Hierarchical path of the ad unit (e.g., "parent_id/child_id").
Targeting metadata sizes Distinct from display/video.w/h which govern serving and rendering.
Description of the ad unit.
Display placement configuration.
Ad unit extension fields.
Canonical Placement ID for OpenRTB imp.ext.gpid.
Indicates if this is an interstitial placement, where 0 = no, 1 = yes. Applies across display, video, and native.
0, 1 Whether the ad unit is active.
Based on OpenRTB Native Ads 1.2 Native Markup Request Object, not the AdCOM standard native format
Video placement configuration.
