Browse the help center

Header Bidding API endpoints

Endpoint reference for the Header Bidding tag (9 endpoints): Header-bidding page tags: slots, refresh and Google Ad Manager settings, and the code a page carries

Reference network manager admin

Header-bidding page tags: slots, refresh and Google Ad Manager settings, and the code a page carries. 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/hb-tags.do

Request examples

List header-bidding tags.

ParameterInTypeRequiredDescription
siteIdqueryintegernoOnly the tags of this site
limitqueryintegernoHow many tags to return, 1-500

Responses: 200 — {data: [tag], total, more}. Errors follow the shared conventions.

POST /rest-api/hb-tags.do

Request examples

Create a header-bidding tag.

Request body (application/json, required): JSON object with fields active, adServerWithoutConsent, allowZeroCpmBids, bidTimeoutMs, bidderCode, collapseEmpty, domain, id, integration, loadInViewOnly, name, ourDemandFirst, prebidGlobal, refreshForegroundOnly, refreshIdleMinutes, refreshInViewOnly, refreshSeconds, setDocumentLanguage, siteId, slots — The tag.

Responses: 200 — {data: tag, code, ignoredFields, ignoredFieldReasons}. Errors follow the shared conventions.

GET /rest-api/hb-tags/{tagId}.do

Request examples

Get a header-bidding tag by id.

ParameterInTypeRequiredDescription
tagIdpathintegeryesUnique numeric ID of the tag

Responses: 200 — {data: tag, code: {script, containers, gamKeys}} · 404 — Tag not found or deleted. Errors follow the shared conventions.

POST /rest-api/hb-tags/{tagId}.do

Request examples

Update a header-bidding tag.

ParameterInTypeRequiredDescription
tagIdpathintegeryesUnique numeric ID of the tag

Request body (application/json, required): JSON object with fields active, adServerWithoutConsent, allowZeroCpmBids, bidTimeoutMs, bidderCode, collapseEmpty, domain, id, integration, loadInViewOnly, name, ourDemandFirst, prebidGlobal, refreshForegroundOnly, refreshIdleMinutes, refreshInViewOnly, refreshSeconds, setDocumentLanguage, siteId, slots — Only the fields to change.

Responses: 200 — {data: tag, code, ignoredFields, ignoredFieldReasons} · 404 — Tag not found or deleted. Errors follow the shared conventions.

DELETE /rest-api/hb-tags/{tagId}.do

Request examples

Delete a header-bidding tag.

ParameterInTypeRequiredDescription
tagIdpathintegeryesUnique numeric ID of the tag

Responses: 200 — Deleted · 404 — Tag not found or deleted. Errors follow the shared conventions.

GET /rest-api/hb-tags/ad-units.do

Request examples

List ad units (sizes) for header-bidding slots.

No parameters beyond authentication.

Responses: 200 — {data: [adUnit], total}. Errors follow the shared conventions.

GET /rest-api/hb-tags/bidders.do

Request examples

List Prebid bidders a header-bidding slot can carry.

No parameters beyond authentication.

Responses: 200 — {data: [bidder], total}. Errors follow the shared conventions.

GET /rest-api/hb-tags/domains.do

Request examples

List serving domains for header-bidding tags.

No parameters beyond authentication.

Responses: 200 — {data: [{domain, cdnDomain, isDefault}], total}. Errors follow the shared conventions.

GET /rest-api/hb-tags/placements.do

Request examples

List placements a header-bidding slot can use.

ParameterInTypeRequiredDescription
siteIdqueryintegeryesUnique numeric ID of the site

Responses: 200 — {data: [placement], total}. 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.