Browse the help center

Sites API endpoints

Endpoint reference for the Sites tag (27 endpoints): Publisher site management

Reference network manager admin

Publisher site management. 27 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/adsHosts.do

Request examples

List ad serving hosts.

No parameters beyond authentication.

Responses: 200 — Successful operation. Errors follow the shared conventions.

GET /rest-api/invocationCodeHosts.do

Request examples

List invocation code hosts.

No parameters beyond authentication.

Responses: 200 — Successful operation. Errors follow the shared conventions.

GET /rest-api/sites-tree.do

Request examples

List sites with zones and placements.

ParameterInTypeRequiredDescription
basicInfoquerybooleannoIf true, includes additional site details such as URL, email, and contact info
publishingCategoriesqueryarray<integer>noIDs of publishing categories to filter sites by
startqueryintegernoPaging: skip this many sites (ordered by id). Default 0
limitqueryintegernoPaging: at most this many sites, each with all its zones and placements. Omitted — every site. A page shorter than limit is the last one

Responses: 200 — Site tree returned successfully. Errors follow the shared conventions.

GET /rest-api/sites.do

Request examples

List all sites.

ParameterInTypeRequiredDescription
publishingCategoriesqueryarray<integer>noIDs of publishing categories to filter sites by
basicInfoquerybooleannoIf true, includes additional site details such as URL, email, and contact info
basicInfoIdsqueryarray<string>noComma-separated site IDs for which to include additional basic info
offsetqueryintegernoPagination offset over sites ordered by id (zero-based)
limitqueryintegernoMaximum number of sites to return; omit for all
fieldsqueryarray<string>noReturn only these fields of each entity, comma-separated; id is always kept. A requested field no returned row carries is named in the X-Ignored-Fields response header
filterqueryobjectnoKeep only entities matching every key, e.g. filter[cpaOptimization]=true&filter[hasLimit]=true. Keys are the entity’s on/off settings (active, enableTargeting, cpaOptimization, alwaysRedirect, …) and a has<Relation> flag for each setting kept in rows of its own (hasLimit, hasPricing, hasFrequencyCapping, hasTrackingCode, hasPriceAdjustmentRules, hasLabels, hasBanners, …), true when the relation holds a row; hasCapping, hasLimits and hasTargetingRules group the relations of their kind. An unknown key is a 400 that lists every valid key for the list.

Responses: 200 — Site list returned successfully. Errors follow the shared conventions.

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

Request examples

Get site by ID.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site
basicInfoquerybooleannoIf true, includes additional site details such as URL, email, and contact info

Responses: 200 — Site returned successfully · 404 — Site not found or deleted. Errors follow the shared conventions.

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

Request examples

Change ad serving domain.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site
hostformstringnoAd serving host name to set, or null to reset to system default

Responses: 200 — Ad serving domain updated successfully · 404 — Site or domain not found. Errors follow the shared conventions.

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

Request examples

Change invocation code domain.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site
hostformstringnoInvocation code host name to set, or null to reset to system default

Responses: 200 — Invocation code domain updated successfully · 404 — Site or domain not found. Errors follow the shared conventions.

GET /rest-api/sites/{siteId}/cpm-thresholds.do

Request examples

Get site CPM thresholds.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Responses: 200 — CPM thresholds returned successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/cpm-thresholds.do

Request examples

Set site CPM thresholds.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Request body (application/json, required): JSON object with fields cpmThreshold, siteCountryCPMThresholds.

Responses: 200 — CPM thresholds updated successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/cpm-thresholds/delete.do

Request examples

Delete site CPM thresholds.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Responses: 200 — CPM thresholds deleted successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

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

Request examples

Delete site.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site to delete

Responses: 200 — Site deleted successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

GET /rest-api/sites/{siteId}/invocation-codes.do

Request examples

List a site’s invocation codes.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite ID
limitqueryintegernoPlacements per page, 1 to 1000
startqueryintegernoOffset of the first placement returned

Responses: 200 — {success, total, data:[{zoneId, zoneName, placementId, placementName, placementType, codeTypes}]} · 404 — Site not found or deleted. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/invocation-codes/send.do

Request examples

Email a site’s invocation codes.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite ID
bccAuthorformbooleannoSend a blind copy to the caller’s own address
bodyformstringnoEmail HTML body; the invocation-code email template’s body when omitted. Required, with subject, when the network has no such template
emailsformarray<string>noRecipient addresses, at most 20
placementInvocationCodesformobjectnoCode types to send per placement ID. Every placement must belong to the site in the path.
singleFileformbooleannoAttach every code in one text file (true) or one file per placement and code type (false)
subjectformstringnoEmail subject; the invocation-code email template’s subject when omitted. Required, with body, when the network has no such template

Responses: 200 — {success, recipients} — the codes were handed to the mailer · 404 — Site or placement not found or deleted. Errors follow the shared conventions.

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

Request examples

Get site pricing.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Responses: 200 — Pricing returned successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

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

Request examples

Set site pricing.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Request body (application/json, required): JSON object with fields advertiserPricing, countryPricing, minMarginType, minMarginValue, paymentModel, price, pricingType, revenueShare.

Responses: 200 — Pricing updated successfully · 404 — Not found — resource does not exist · 500 — Internal error while updating pricing. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/pricing/{countryCode}.do

Request examples

Update site country pricing.

ParameterInTypeRequiredDescription
priceformnumberyesPrice value as a decimal number
siteIdpathintegeryesUnique numeric ID of the site
countryCodepathstringyes2-letter ISO 3166 country code (e.g. US, GB, DE)
actionIdformintegernoID of the action for per-action pricing, or null for default pricing

Responses: 200 — Country pricing updated successfully · 404 — actionId names no action the caller can see. Errors follow the shared conventions.

DELETE /rest-api/sites/{siteId}/pricing/{countryCode}.do

Request examples

Delete site country pricing.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site
countryCodepathstringyes2-letter ISO 3166 country code (e.g. US, GB, DE)
actionIdformintegernoID of the action for per-action pricing, or null for default pricing

Responses: 200 — Country pricing deleted successfully · 404 — actionId names no action the caller can see, or there is no price for that country (and action) to remove, including on a site without fixed pricing. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/pricing/{paymentModel}/remove.do

Request examples

Remove site pricing model.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site
paymentModelpathstringyesPayment model to remove: FIXED_PRICE or REVENUE_SHARE Values: FIXED_PRICE, REVENUE_SHARE.

Responses: 200 — Pricing model removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

GET /rest-api/sites/{siteId}/video-requirements.do

Request examples

Get site video creative requirements.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Responses: 200 — The site’s requirements · 404 — Site not found or deleted. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/video-requirements.do

Request examples

Set site video creative requirements.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Request body (application/json, required): JSON object with fields audioChannels, audioCodecs, basedOnPreset, bitrateExemptsProRes, constantFrameRate, containers, durationRange, durationTolerance, durations, frameRates, loudness, maxFileSizeMb, minAudioBitrate, minResolution, resolutions, videoBitrate, videoCodecs.

Responses: 200 — Requirements saved; the stored requirements are returned · 404 — Site not found or deleted. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/video-requirements/apply-preset.do

Request examples

Apply a publisher video spec preset to a site.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site
presetIdformstringyesPreset id from video-requirements/presets

Responses: 200 — Preset applied; the site’s requirements and switch are returned · 404 — Site not found or deleted. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/video-requirements/disable.do

Request examples

Switch off site video creative requirements.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Responses: 200 — Switched off; the site’s requirements and switch are returned · 404 — Site not found or deleted. Errors follow the shared conventions.

POST /rest-api/sites/{siteId}/video-requirements/enable.do

Request examples

Switch on site video creative requirements.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the site

Responses: 200 — Switched on; the site’s requirements and switch are returned · 404 — Site not found or deleted. Errors follow the shared conventions.

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

Request examples

List zones for site.

ParameterInTypeRequiredDescription
siteIdpathintegeryesUnique numeric ID of the parent site
fieldsqueryarray<string>noReturn only these fields of each entity, comma-separated; id is always kept. A requested field no returned row carries is named in the X-Ignored-Fields response header
filterqueryobjectnoKeep only entities matching every key, e.g. filter[cpaOptimization]=true&filter[hasLimit]=true. Keys are the entity’s on/off settings (active, enableTargeting, cpaOptimization, alwaysRedirect, …) and a has<Relation> flag for each setting kept in rows of its own (hasLimit, hasPricing, hasFrequencyCapping, hasTrackingCode, hasPriceAdjustmentRules, hasLabels, hasBanners, …), true when the relation holds a row; hasCapping, hasLimits and hasTargetingRules group the relations of their kind. An unknown key is a 400 that lists every valid key for the list.

Responses: 200 — Zones returned successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

GET /rest-api/sites/ids.do

Request examples

List sites by IDs.

ParameterInTypeRequiredDescription
siteIdsqueryarray<integer>yesArray of site IDs to retrieve
basicInfoquerybooleannoIf true, includes additional site details such as URL, email, and contact info

Responses: 200 — Sites returned successfully. Errors follow the shared conventions.

POST /rest-api/sites/update.do

Request examples

Create or update site.

ParameterInTypeRequiredDescription
createDefaultZoneformbooleannoIf true, creates a default zone with the same name as the site
idformintegernoID of the site to update — omit to create a new site
categoryIdformarray<integer>noPublisher category IDs, comma-separated or repeated — replace the site’s categories
actionLimitsEnabledformbooleannoEnable per-action conversion limits
activeformbooleannoWhether the site is active
adsHostformstringnoCustom ad serving domain for this site
bundleformstringnoApp bundle id (com.example.app on Android, numeric ID on iOS) — only relevant when inventoryType=APP. Optional.
cookieCollectingEnabledformbooleannoEnable cookie-based visitor tracking
descriptionformstringnoSite description
emailformstringnoContact email for the site
enableRulesformbooleannoEnable advanced rules engine for this site
enableTargetingformbooleannoEnable targeting rules for this site
impressionsByMonthformstringnoMonthly impression volume range Values: LESS_THAN_100K, _100K_1_MILLION, _1_MILLION_50_MILLION, _50_MILLION_100_MILLION, _100_PLUS_MILLION, NOT_YET_LAUNCHED, DONT_KNOW.
inventoryTypeformstringnoInventory type: WEBSITE or APP Values: WEBSITE, APP.
invocationCodeHostformstringnoCustom domain for invocation code generation, up to 64 characters
maskInventoryformbooleannoMask inventory details from advertisers
nameformstringnoSite name
operationBetweenRuleTypesformstringnoLogical operator between different targeting rule types (AND, OR) Values: AND, OR.
piggybackStatusformstringnoPiggyback tracking status (ENABLED, DISABLED) Values: ENABLED, DISABLED.
privacyPolicyEnabledformbooleannoWhether a privacy policy is enabled for this site
privateFieldformbooleannoMark as private — hidden from marketplace/network discovery
schainSellerIdformstringnoSeller id for this publisher in the network’s own sellers.json
urlformstringnoSite URL — only relevant when inventoryType=WEBSITE, ignored for APP. Optional.
visitorsByMonthformstringnoMonthly unique visitor volume range Values: LESS_THAN_100K, _100K_1_MILLION, _1_MILLION_50_MILLION, _50_MILLION_100_MILLION, _100_PLUS_MILLION, NOT_YET_LAUNCHED, DONT_KNOW.
revenueShareformnumbernoRevenue share percentage (0-100) for this site

Responses: 200 — Site created or updated successfully. Errors follow the shared conventions.

GET /rest-api/video-requirements/presets.do

Request examples

List publisher video spec presets.

No parameters beyond authentication.

Responses: 200 — {presets: [{id, name, profile, source, asOf, requirements}], 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.