Browse the help center

Targeting Rules API endpoints — Placement

Endpoint reference for the Targeting Rules tag on the placement level (63 placement endpoints): Targeting rules for advertisers, campaigns, banners, placements, sites, and zones

Reference network manager admin

Targeting rules for advertisers, campaigns, banners, placements, sites, and zones. 63 placement 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.

The endpoints shared by every level are on Targeting Rules API endpoints.

GET /rest-api/placement/{placementId}/targeting/{targetId}.do

Request examples

Get placement targeting rule by ID.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
targetIdpathintegeryesUnique numeric ID of the targeting rule to retrieve

Responses: 200 — Success · 404 — Placement or targeting rule not found · 500 — Internal server error. Errors follow the shared conventions.

DELETE /rest-api/placement/{placementId}/targeting/{targetId}/delete.do

Request examples

Delete placement targeting rule.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
targetIdpathintegeryesUnique numeric ID of the targeting rule to delete

Responses: 200 — Success · 404 — Placement or targeting rule not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/advertiser/create.do

Request examples

Create placement blocked advertiser targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
advertiserIdsformstringyesComma-separated list of advertiser IDs to block (e.g., ‘123,456,789’)
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

Responses: 200 — {success, created, alreadyTargeted} · 404 — Placement or advertiser not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/api-json-field/create.do

Request examples

Create placement API JSON field targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
apiUrlformstringyesExternal API URL that returns a JSON response
jsonFieldformstringyesJSON field name to extract from the API response
jsonFieldValueformstringyesExpected value of the JSON field to match against

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/app-package/create.do

Request examples

Create placement app package targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
appPackageformstringyesApplication package/bundle identifier (e.g., ‘com.example.app’)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/browser-country/create.do

Request examples

Create placement browser country targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
countryCodeformarray<string>yesISO 3166-1 alpha-2 country code(s) to target — repeat the parameter or separate codes with commas (e.g. DE,FR)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/browser-rank/create.do

Request examples

Create placement browser rank targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
browserRankformintegeryesBrowser popularity rank value to target
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/browser/chrome/values.do

Request examples

Get Chrome browser version values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/browser/create.do

Request examples

Create placement browser targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
browserformstringyesBrowser type to target (e.g., FIREFOX, CHROME, SAFARI, EDGE) Values: CHROME_MOBILE, CHROME, MOBILE_SAFARI, SAFARI, EDGE, FIREFOX, OPERA, SAMSUNG_BROWSER, UC_BROWSER, YANDEX, OPERA_MINI, EDGE_MOBILE, QQ_BROWSER, FIREFOX_MOBILE, MIUI_BROWSER, WHALE, HUAWEI_BROWSER, OPERA_MOBILE, BRAVE, BAIDU_BROWSER, YANDEX_BROWSER_IOS, AMAZON_SILK, DUCKDUCKGO, VIVO_BROWSER, ARC … (+44 more, 69 total).
relationformstringnoVersion comparison relation (e.g., LOWER, GREATER, EQUAL, LOWER_EQUAL, GREATER_EQUAL) Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.
browserVersionformstringnoBrowser major version number; supports integer or old-style format like ‘30.0’ (only major version is applied)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/browser/firefox/values.do

Request examples

Get Firefox browser version values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/browser/ie/values.do

Request examples

Get IE browser version values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/browser/safari/values.do

Request examples

Get Safari browser version values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/browser/values.do

Request examples

Get browser targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/channel/create.do

Request examples

Create placement channel targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
channelformstringyesChannel identifier string to target

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/connection-type/create.do

Request examples

Create placement connection type targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
connectionTypeformstringyesConnection type to target Values: UNKNOWN, DIALUP, CABLE_DSL, CORPORATE, CELLULAR, WI_FI.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/connection-type/values.do

Request examples

Get connection type values.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

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

POST /rest-api/placement/{placementId}/targeting/cookie-value/create.do

Request examples

Create placement cookie value targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
cookieNameformstringyesName of the browser cookie to match against
cookieValueformstringyesExpected value of the browser cookie

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/country/create.do

Request examples

Create placement country targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
countryCodeformarray<string>yesISO 3166-1 alpha-2 country code(s) to target — repeat the parameter or separate codes with commas (e.g. DE,FR)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/country/region/city/values.do

Request examples

Get region city values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
countryCodequerystringyesISO alpha-2 country code (e.g., ‘US’, ‘GB’, ‘DE’)
regionNamequerystringyesRegion or state name within the specified country

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/country/region/values.do

Request examples

Get country region values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
countryCodequerystringyesISO alpha-2 country code (e.g., ‘US’, ‘GB’, ‘DE’)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/custom/create.do

Request examples

Create placement custom parameter targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
customValueformstringyesCustom targeting value or expression (e.g., ’($p1==1 || $p1==“a”) && $p2>=12’)
customTypeformstringnoCustom target type — EXPRESSION, VALUE, or SUBSTRING (optional) Values: EXPRESSION, VALUE, ONE_OF, SUBSTRING.
operationformstringnoMatching operation — EQUALS, NOT_EQUALS, CONTAINS, or NOT_CONTAINS (optional) Values: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, GREATER, GREATER_OR_EQUALS, LESS, LESS_OR_EQUALS, IN, NOT_IN.
parameterformstringnoParameter name for the operation value (optional)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/date-time/create.do

Request examples

Create placement date/time targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
timeFromformstringyesTime range start in HH:mm format
timeToformstringyesTime range end in HH:mm format
dayOfWeekformarray<string>noDays of week to target; omitted, the rule applies on every day Values: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
clientLocalTimeformbooleannoWhen true, use client’s local time zone for time range evaluation

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/day-of-week/create.do

Request examples

Create placement day of week targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
dayOfWeekformstringyesDay of week — MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY Values: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/device-format/create.do

Request examples

Create placement device format targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
deviceFormatformstringyesDevice form factor to target (e.g., PHONE, TABLET, DESKTOP) Values: DESKTOP, TABLET, MOBILE, SMART_TV.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/device-format/values.do

Request examples

Get device format targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/device-ram/create.do

Request examples

Create placement device RAM targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
deviceRamformintegeryesDevice RAM amount in megabytes to target
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/device-release-year/create.do

Request examples

Create placement device release year targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
deviceReleaseYearformintegeryesDevice release year to target (e.g., 2020)
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/device-vendor/create.do

Request examples

Create placement device vendor targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
deviceVendorformstringyesDevice vendor/manufacturer to target (e.g., APPLE, SAMSUNG, HUAWEI) Values: SAMSUNG, APPLE, XIAOMI, VIVO, OPPO, HONOR, TECNO, INFINIX, HUAWEI, REALME, MOTOROLA, ONEPLUS, ITEL, NOKIA, ZTE, AMAZON, PHILIPS, WIKO, LENOVO, NUBIA, HISENSE, CHANGHONG, KIVI, MEIZU, TCL … (+14 more, 39 total).

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/device-vendor/values.do

Request examples

Get device vendor targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/disable.do

Request examples

Disable placement targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/dmp/create.do

Request examples

Create placement DMP targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
dmpformstringyesDMP — enum name or numeric ID Values: FIRST_PARTY, DTSCOUT, AIDATA, LOTAME, SITEMATH, MEDIAQUARK, JOTTIX.
dmpSegmentIdformintegeryesID of a segment of that DMP

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/domain/create.do

Request examples

Create placement domain targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
domainformstringyesReferrer domain name to target (e.g., ‘example.com’)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/enable.do

Request examples

Enable placement targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/hardware-rank/create.do

Request examples

Create placement hardware rank targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
hardwareRankformintegeryesHardware quality rank value to target
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/incognito-mode/create.do

Request examples

Create placement incognito mode targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/ip-range/create.do

Request examples

Create placement IP range targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
ipFromformstringyesStart of the IP range in dotted-decimal (IPv4) or colon-hex (IPv6) notation
ipToformstringyesEnd of the IP range in dotted-decimal (IPv4) or colon-hex (IPv6) notation

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/is-web-app/create.do

Request examples

Create placement web app targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/language/create.do

Request examples

Create placement language targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
languageCodeformstringyesISO language code to target (e.g., ‘en’, ‘de’, ‘fr’)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/language/values.do

Request examples

Get language targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/location/create.do

Request examples

Create placement location targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
countryCodeformstringyesISO alpha-2 country code (e.g., ‘US’, ‘GB’, ‘DE’)
regionNameformstringnoRegion or state name within the specified country (optional)
cityNameformstringnoCity name within the specified region (optional, requires regionName)

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/mobile-carrier/create.do

Request examples

Create placement mobile carrier targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
mobileCarriersformarray<string>noMobile carrier names, spelled exactly as GET /rest-api/targeting/mobile-carrier/bycountry/values.do lists them; an unknown name answers 400

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/mobile-carrier/values.do

Request examples

Get mobile carrier targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/operating-system/{osName}/versions.do

Request examples

Get OS version values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
osNamepathstringyesOperating system. Accepts enum name or integer ID for backward compatibility Values: UNSPECIFIED, WINDOWS, LINUX, MAC_OS_X, IOS, IPADOS, ANDROID, SYMBIAN, J2ME, BLACKBERRY, XMB, BADA, PALM_OS, SOLARIS, MEEGO, CHROME_OS, FREE_BSD, WINDOWS_PHONE, SAMSUNG_TIZEN, HISENSE_VIDAA, LG_WEB_OS, ROKU_TV_OS, AMAZON_FIRE_TV, APPLE_TV, ANDROID_TV.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/operating-system/create.do

Request examples

Create placement OS targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
operatingSystemformstringyesOperating system to target (e.g., WINDOWS, MACOS, LINUX, ANDROID, IOS) Values: UNSPECIFIED, WINDOWS, LINUX, MAC_OS_X, IOS, IPADOS, ANDROID, SYMBIAN, J2ME, BLACKBERRY, XMB, BADA, PALM_OS, SOLARIS, MEEGO, CHROME_OS, FREE_BSD, WINDOWS_PHONE, SAMSUNG_TIZEN, HISENSE_VIDAA, LG_WEB_OS, ROKU_TV_OS, AMAZON_FIRE_TV, APPLE_TV, ANDROID_TV.
versionformstringnoOptional OS version: a version value from the OS versions endpoint (for example 16.-1 for iOS 16.x.x) or its title. An unknown version, or a version on an OS without versions, answers 400 with the valid versions
relationformstringnoVersion comparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL. Required when version is sent (a version without it answers 400); ignored without version Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/operating-system/values.do

Request examples

Get OS targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/operation-between-rule-types.do

Request examples

Set how placement targeting rule types combine.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
operatorformstringyesAND — every rule type must match; OR — any one rule type is enough Values: AND, OR.

Responses: 200 — Success — the response carries the saved operationBetweenRuleTypes · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/platform-rank/create.do

Request examples

Create placement platform rank targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
platformRankformintegeryesPlatform popularity rank value to target
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/preset-app-package/create.do

Request examples

Create placement preset app package targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
appPackageGroupIdformintegeryesUnique numeric ID of the preset application package group

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/preset-domain/create.do

Request examples

Create placement preset domain targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
domainGroupIdformintegeryesUnique numeric ID of the preset domain group

Responses: 200 — Success · 404 — Placement or domain group not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/preset-ip-ranges/create.do

Request examples

Create placement preset IP ranges targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
presetIpRangesGroupIdformintegernoID of the preset IP ranges group; also accepted as ipRangesGroupId. One of the two is required
ipRangesGroupIdformintegernoThe same preset IP ranges group ID under its other name; presetIpRangesGroupId wins when both are sent

Responses: 200 — Success · 404 — Placement or IP ranges group not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/price-band/create.do

Request examples

Create placement price band targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
priceBandformnumberyesDevice price band value to target
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/protocol/create.do

Request examples

Create placement protocol targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
protocolformstringyesConnection protocol to target — HTTP or HTTPS Values: HTTP, HTTPS.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/proxy/create.do

Request examples

Create placement proxy targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
proxyformstringyesProxy type to target: VPN, TOR, DCH (data center / hosting), PUB (public proxy), WEB (web proxy) or SES (search engine robot) Values: VPN, TOR, DCH, PUB, WEB, SES.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/screen-resolution/create.do

Request examples

Create placement screen resolution targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
relationformstringyesComparison operator — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.
screenWidthformintegeryesTarget screen width in pixels
screenHeightformintegeryesTarget screen height in pixels

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/screen-resolution/values.do

Request examples

Get screen resolution targeting values for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/time-range/create.do

Request examples

Create placement time range targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
timeFromformstringyesStart time in 24-hour format HH:MM (e.g., ‘09:00’)
timeToformstringyesEnd time in 24-hour format HH:MM (e.g., ‘18:00’)
clientLocalTimeformbooleannoIf true, evaluate against viewer’s local time; if false, use UTC

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/traffic-risk-score/create.do

Request examples

Create placement traffic risk score targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
riskLevelformstringyesTraffic fraud risk level threshold. Accepts enum name or integer ID for backward compatibility Values: NOT_SCORED, LOW, LIKELY, HIGH, VERY_HIGH, CERTAIN.
relationformstringyesComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.
riskCategoryformarray<string>noArray of risk categories for brand safety targeting. Accepts enum names (e.g. HIGH_RISK_IP), camelCase names (e.g. highRiskIP), or integer IDs Values: HIGH_RISK_IP, HIGH_RISK_APP, APP_SPOOFING, DISPLAY_IMPRESSION_FRAUD, DEVICE_ID_STUFFING, DEFASED_APP, VIDEO_IMPRESSION_FRAUD, HIGH_RISK_DOMAIN, IAB_CRAWLER, DATACENTER, DISPLAY_CLICK_FRAUD, LOCATION_OBFUSCATION, HIJACKED_SESSION, COOKIE_STUFFING, DATACENTER_PROXY, PUBLISHER_FRAUD, IDIO_BOTS, TOR, AUTO_RELOADER, CLICK_FARM, BLANK_USER_AGENT, PHISHING, DOORWAY_SITE, IAB_DUMMY_BOT, FAST_CLICKER.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/traffic-source/create.do

Request examples

Create placement traffic source targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
trafficSourceformstringyesTraffic source to target Values: HEADER_BIDDING.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targeting/traffic-source/values.do

Request examples

Get traffic source values.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

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

GET /rest-api/placement/{placementId}/targeting/types.do

Request examples

Get available targeting types for placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/placement/{placementId}/targeting/wifi-traffic/create.do

Request examples

Create placement WiFi traffic targeting.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/placement/{placementId}/targetings.do

Request examples

Get placement targeting rules.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement

Responses: 200 — Success · 404 — Placement not found · 500 — Internal server error. Errors follow the shared conventions.

DELETE /rest-api/placement/{placementId}/targetings.do

Request examples

Delete all placement targeting rules.

ParameterInTypeRequiredDescription
placementIdpathintegeryesUnique numeric ID of the placement
targetTypeformstringnoOptional targeting type filter — only rules of this type are deleted Values: COUNTRY, BROWSER_COUNTRY, LOCATION, LANGUAGE, MOBILE_CARRIER, TIME_RANGE, DAY_OF_WEEK, DATE_TIME, OPERATING_SYSTEM, BROWSER, DEVICE_FORMAT, DEVICE_VENDOR, RESOLUTION, PROTOCOL, WIFI_TRAFFIC, IS_WEB_APP, INCOGNITO_MODE, DEVICE_RELEASE_YEAR, DEVICE_RAM, BROWSER_RANK, HARDWARE_RANK, PLATFORM_RANK, PRICE_BAND, DOMAIN, CHANNEL … (+18 more, 43 total).
ruleformstringnoOptional rule filter — only INCLUDE or only EXCLUDE rules are deleted Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

Responses: 200 — Success — the response carries the deleted count · 404 — Placement not found · 500 — Internal server error. 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.