Create or update site
Creates a new publisher site or updates an existing one.
https://YOUR-NETWORK-DOMAIN/rest-api/sites/update.do Creates a new publisher site or updates an existing one. If the request includes a site ID, the existing site is updated; otherwise a new site is created. Requires ALL or SHARED level CREATE/UPDATE permission on INVENTORY (SHARED requires CAN_EDIT or IS_OWNER share type). When creating, optionally set createDefaultZone=true to auto-create a zone matching the site name. Auto-placements and default pricing may be initialized on creation. SSP sites cannot be updated through this endpoint. A new site is approved on creation when the caller holds SITES_APPROVAL; an update never changes the approval status. Fields with a console control of their own are applied only with that control's permission enabled and otherwise keep the stored value: 'active' MANAGE_SITES_ACTIVE_STATUS, 'piggybackStatus' PIGGYBACK_PIXEL_TRACKING, 'privateField' SET_PRIVATE, 'maskInventory' MANAGE_MASK_INVENTORY, 'cookieCollectingEnabled' SITE_COOKIE_NOCOLLECT, 'schainSellerType', 'schainConfidential' and 'sellersJsonListed' SITE_SUPPLY_CHAIN (and never on a site the caller sees through a masked share), and the targeting, rules and per-action-limit switches their own. Parameters that were sent but not applied are listed in 'ignoredFields', each with its reason in 'ignoredFieldReasons'.
Form Params
createDefaultZone boolean
If true, creates a default zone with the same name as the site
true id integer
ID of the site to update — omit to create a new site
2001 categoryId array<integer>
Publisher category IDs, comma-separated or repeated — replace the site's categories
5 actionLimitsEnabled boolean
Enable per-action conversion limits
true active boolean
Whether the site is active
true bundle string
App bundle id (com.example.app on Android, numeric ID on iOS) — only relevant when inventoryType=APP. Optional.
com.example.app cookieCollectingEnabled boolean
Enable cookie-based visitor tracking
true description string
Site description
High-traffic news portal email string
Contact email for the site
publisher@example.com enableRules boolean
Enable advanced rules engine for this site
true enableTargeting boolean
Enable targeting rules for this site
true impressionsByMonth string
Monthly impression volume range
_1_MILLION_50_MILLION inventoryType string
Inventory type: WEBSITE or APP
WEBSITE maskInventory boolean
Mask inventory details from advertisers
true name string
Site name
Example News Portal operationBetweenRuleTypes string
Logical operator between different targeting rule types (AND, OR)
AND piggybackStatus string
Piggyback tracking status (ENABLED, DISABLED)
ENABLED privacyPolicyEnabled boolean
Whether a privacy policy is enabled for this site
true privateField boolean
Mark as private — hidden from marketplace/network discovery
true schainConfidential boolean
Hide this publisher's name and domain in the network's sellers.json
false schainSellerId string
Seller id for this publisher in the network's own sellers.json
1200 schainSellerType string
Who is paid for this publisher's inventory, as listed in the network's sellers.json: PUBLISHER, INTERMEDIARY or BOTH
PUBLISHER sellersJsonListed boolean
List this site in the network's sellers.json. Off by default: sites are opted in one by one
true url string
Site URL; for inventoryType=APP, the developer website from the app's store page, where its app-ads.txt is checked and which sellers.json names. Optional.
https://example.com visitorsByMonth string
Monthly unique visitor volume range
_100K_1_MILLION revenueShare number
Revenue share percentage (0-100) for this site
70.0 Responses
200
Site created or updated successfully
400
Bad request — invalid or missing parameters
401
Authentication error
403
Insufficient permissions