Browse the help center

Categories API endpoints

Endpoint reference for the Categories tag (9 endpoints): Category management

Reference network manager admin

Category management. 9 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/additional-fields/{entityType}/{entityId}.do

Request examples

Read an entity’s custom field values.

ParameterInTypeRequiredDescription
entityTypepathstringyesEntity type the fields belong to Values: SITE, ZONE, PLACEMENT, ADVERTISER, CAMPAIGN, BANNER.
entityIdpathintegeryesId of the advertiser, campaign, banner, site, zone or placement

Responses: 200 — ‘fields’ lists {id, name, title, value} for each field of the entity type · 404 — The entity does not exist or is deleted. Errors follow the shared conventions.

POST /rest-api/additional-fields/{entityType}/{entityId}.do

Request examples

Set an entity’s custom field values.

ParameterInTypeRequiredDescription
entityTypepathstringyesEntity type the fields belong to Values: SITE, ZONE, PLACEMENT, ADVERTISER, CAMPAIGN, BANNER.
entityIdpathintegeryesId of the advertiser, campaign, banner, site, zone or placement

Request body (application/json): JSON object.

Responses: 200 — Saved; ‘fields’ lists {id, name, title, value} for each field of the entity type · 404 — The entity does not exist or is deleted. Errors follow the shared conventions.

GET /rest-api/iab-categories.do

Request examples

List IAB categories.

No parameters beyond authentication.

Responses: 200 — ‘categories’ lists {id, code, description}. Errors follow the shared conventions.

GET /rest-api/placements/{placementId}/openrtb.do

Request examples

Read a placement’s Open RTB settings.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id

Responses: 200 — {placementId, customOpenRtbTagId, iabCategories:[{id, code, description}], blockedIabCategories:[…], blockedBannerAttributes:[{name, id, description}]} · 404 — The placement does not exist or is deleted. Errors follow the shared conventions.

POST /rest-api/placements/{placementId}/openrtb.do

Request examples

Set a placement’s Open RTB settings.

ParameterInTypeRequiredDescription
placementIdpathintegeryesPlacement id
iabCategoriesformarray<string>noIAB categories sent for the placement in bid requests, by id or IAB code, comma-separated; empty to clear
blockedIabCategoriesformarray<string>noIAB categories whose ads the placement refuses, by id or IAB code, comma-separated; empty to clear
blockedBannerAttributesformarray<string>noBanner (creative) attributes the placement blocks, sent as OpenRTB battr, by name or OpenRTB id, comma-separated; empty to clear: AUDIO_AD_AUTO_PLAY (1), AUDIO_AD_USER_INITIATED (2), EXPANDABLE_AUTOMATIC (3), EXPANDABLE_USER_INITIATED_CLICK (4), EXPANDABLE_USER_INITIATED_ROLLOVER (5), IN_BANNER_VIDEO_AD_AUTO_PLAY (6), IN_BANNER_VIDEO_AD_USER_INITIATED (7), POP (8), PROVOCATIVE_OR_SUGGESTIVE_IMAGERY (9), SHAKY_FLASHING_FLICKERING_EXTREME_ANIMATION_SMILEYS (10), SURVEYS (11), TEXT_ONLY (12), USER_INTERACTIVE (13), WINDOWS_DIALOG_OR_ALERT_STYLE (14), HAS_AUDIO_ON_OFF_BUTTON (15), AD_CAN_BE_SKIPPED (16)
customOpenRtbTagIdformstringnoCustom OpenRTB tag id sent as imp.tagid instead of the placement key, up to 256 characters; empty to clear

Responses: 200 — The placement’s Open RTB settings after the save, in the shape of the GET · 404 — The placement does not exist or is deleted. Errors follow the shared conventions.

GET /rest-api/sites/{siteId}/openrtb.do

Request examples

Read a site’s Open RTB categories.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite id

Responses: 200 — {siteId, openRtbPublisherId, iabCategories:[{id, code, description}], blockedIabCategories:[…]} · 404 — The site does not exist or is deleted. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/openrtb.do

Request examples

Set a site’s Open RTB categories.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite id
iabCategoriesformarray<string>noIAB categories sent for the site in bid requests, by id or IAB code, comma-separated; empty to clear
blockedIabCategoriesformarray<string>noIAB categories whose ads the site refuses, by id or IAB code, comma-separated; empty to clear

Responses: 200 — The site’s Open RTB settings after the save, in the shape of the GET · 404 — The site does not exist or is deleted. Errors follow the shared conventions.

GET /rest-api/zones/{zoneId}/openrtb.do

Request examples

Read a zone’s Open RTB categories.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesZone id

Responses: 200 — {zoneId, iabCategories:[{id, code, description}], blockedIabCategories:[…]} · 404 — The zone does not exist or is deleted. Errors follow the shared conventions.

POST /rest-api/zones/{zoneId}/openrtb.do

Request examples

Set a zone’s Open RTB categories.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesZone id
iabCategoriesformarray<string>noIAB categories sent for the zone in bid requests, by id or IAB code, comma-separated; empty to clear
blockedIabCategoriesformarray<string>noIAB categories whose ads the zone refuses, by id or IAB code, comma-separated; empty to clear

Responses: 200 — The zone’s Open RTB settings after the save, in the shape of the GET · 404 — The zone does not exist or is deleted. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.