Browse the help center

Targeting Rules API endpoints — Campaign

Endpoint reference for the Targeting Rules tag on the campaign level (64 campaign 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. 64 campaign 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/campaign/{campaignId}/targeting/{targetId}.do

Request examples

Get campaign targeting rule by ID.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
targetIdpathintegeryesUnique numeric ID of the targeting rule to retrieve

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

DELETE /rest-api/campaign/{campaignId}/targeting/{targetId}/delete.do

Request examples

Delete campaign targeting rule.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
targetIdpathintegeryesUnique numeric ID of the targeting rule to delete

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

POST /rest-api/campaign/{campaignId}/targeting/api-json-field/create.do

Request examples

Create campaign API JSON field targeting.

ParameterInTypeRequiredDescription
apiUrlformstringyesURL of the API endpoint to query
jsonFieldformstringyesJSON field path to evaluate
jsonFieldValueformstringyesExpected JSON field value
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/app-package/create.do

Request examples

Create campaign app package targeting.

ParameterInTypeRequiredDescription
appPackageformstringyesApplication package name
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/browser-country/create.do

Request examples

Create campaign browser country targeting.

ParameterInTypeRequiredDescription
countryCodeformarray<string>yesArray of ISO 3166-1 alpha-2 country codes to target
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/browser-rank/create.do

Request examples

Create campaign browser rank targeting.

ParameterInTypeRequiredDescription
browserRankformintegeryesBrowser rank threshold
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is LOWER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

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

GET /rest-api/campaign/{campaignId}/targeting/browser/chrome/values.do

Request examples

Get Chrome browser version values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/browser/create.do

Request examples

Create campaign browser targeting.

ParameterInTypeRequiredDescription
browserformstringyesBrowser enum value to target 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).
campaignIdpathintegeryesUnique numeric ID of the campaign
ruleformstringnoTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
relationformstringnoOptional comparison relation for version targeting — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, or EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.
browserVersionformstringnoOptional browser version string (e.g., ‘80’ or ‘80.0’)

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

GET /rest-api/campaign/{campaignId}/targeting/browser/firefox/values.do

Request examples

Get Firefox browser version values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/browser/ie/values.do

Request examples

Get IE browser version values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/browser/safari/values.do

Request examples

Get Safari browser version values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/browser/values.do

Request examples

Get browser targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/channel/create.do

Request examples

Create campaign channel targeting.

ParameterInTypeRequiredDescription
channelformstringyesChannel identifier
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/connection-type/create.do

Request examples

Create campaign connection type targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/targeting/connection-type/values.do

Request examples

Get connection type values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/cookie-value/create.do

Request examples

Create campaign cookie value targeting.

ParameterInTypeRequiredDescription
cookieNameformstringyesCookie name to match
cookieValueformstringyesCookie value to match
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/country/create.do

Request examples

Create campaign country targeting.

ParameterInTypeRequiredDescription
countryCodeformarray<string>yesArray of ISO 3166-1 alpha-2 country codes to target
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/country/region/city/values.do

Request examples

Get region city values.

ParameterInTypeRequiredDescription
countryCodequerystringyesISO 3166-1 alpha-2 country code (e.g., US, GB, DE)
regionNamequerystringyesRegion name within the specified country, as returned by the country regions endpoint
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/country/region/values.do

Request examples

Get country region values.

ParameterInTypeRequiredDescription
countryCodequerystringyesISO 3166-1 alpha-2 country code (e.g., US, GB, DE)
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/custom/create.do

Request examples

Create campaign custom parameter targeting.

ParameterInTypeRequiredDescription
customValueformstringyesCustom targeting value
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
customTypeformstringnoCustom target type Values: EXPRESSION, VALUE, ONE_OF, SUBSTRING.
operationformstringnoComparison operation Values: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, GREATER, GREATER_OR_EQUALS, LESS, LESS_OR_EQUALS, IN, NOT_IN.
parameterformstringnoParameter name

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

POST /rest-api/campaign/{campaignId}/targeting/date-time/create.do

Request examples

Create campaign date/time targeting.

ParameterInTypeRequiredDescription
timeFromformstringyesStart time in HH:mm format
timeToformstringyesEnd time in HH:mm format
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
dayOfWeekformarray<string>noDays of week to target; omitted, the rule applies on every day Values: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
clientLocalTimeformbooleannoWhether to use client’s local time

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

POST /rest-api/campaign/{campaignId}/targeting/day-of-week/create.do

Request examples

Create campaign day of week targeting.

ParameterInTypeRequiredDescription
dayOfWeekformstringyesDay of the week Values: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/device-format/create.do

Request examples

Create campaign device format targeting.

ParameterInTypeRequiredDescription
deviceFormatformstringyesDevice format (DESKTOP, MOBILE, TABLET) Values: DESKTOP, TABLET, MOBILE, SMART_TV.
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/device-format/values.do

Request examples

Get device format targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/device-ram/create.do

Request examples

Create campaign device RAM targeting.

ParameterInTypeRequiredDescription
deviceRamformintegeryesDevice RAM in MB
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is GREATER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

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

POST /rest-api/campaign/{campaignId}/targeting/device-release-year/create.do

Request examples

Create campaign device release year targeting.

ParameterInTypeRequiredDescription
deviceReleaseYearformintegeryesDevice release year
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is GREATER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

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

POST /rest-api/campaign/{campaignId}/targeting/device-vendor/create.do

Request examples

Create campaign device vendor targeting.

ParameterInTypeRequiredDescription
deviceVendorformstringyesDevice vendor enum value 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).
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/device-vendor/values.do

Request examples

Get device vendor targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/disable.do

Request examples

Disable campaign targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/dmp/create.do

Request examples

Create campaign DMP targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/targeting/domain/create.do

Request examples

Create campaign domain targeting.

ParameterInTypeRequiredDescription
domainformstringyesDomain name to target
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/enable.do

Request examples

Enable campaign targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/hardware-rank/create.do

Request examples

Create campaign hardware rank targeting.

ParameterInTypeRequiredDescription
hardwareRankformintegeryesHardware rank threshold
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is LOWER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

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

POST /rest-api/campaign/{campaignId}/targeting/incognito-mode/create.do

Request examples

Create campaign incognito mode targeting.

ParameterInTypeRequiredDescription
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/ip-range/create.do

Request examples

Create campaign IP range targeting.

ParameterInTypeRequiredDescription
ipFromformstringyesStart of IP range
ipToformstringyesEnd of IP range
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/is-web-app/create.do

Request examples

Create campaign web app targeting.

ParameterInTypeRequiredDescription
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/language/create.do

Request examples

Create campaign language targeting.

ParameterInTypeRequiredDescription
languageCodeformstringyesISO 639-1 language code
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/language/values.do

Request examples

Get language targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/location/create.do

Request examples

Create campaign location targeting.

ParameterInTypeRequiredDescription
countryCodeformstringyesISO 3166-1 alpha-2 country code
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
regionNameformstringnoOptional region name
cityNameformstringnoOptional city name

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

POST /rest-api/campaign/{campaignId}/targeting/mobile-carrier/create.do

Request examples

Create campaign mobile carrier targeting.

ParameterInTypeRequiredDescription
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/targeting/mobile-carrier/values.do

Request examples

Get mobile carrier targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/operating-system/{osName}/versions.do

Request examples

Get OS version values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/targeting/operating-system/create.do

Request examples

Create campaign OS targeting.

ParameterInTypeRequiredDescription
operatingSystemformstringyesOperating system enum value 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.
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/targeting/operating-system/values.do

Request examples

Get operating system targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/operation-between-rule-types.do

Request examples

Set how campaign targeting rule types combine.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/targeting/placement/create.do

Request examples

Create campaign blocked placement targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
placementIdformstringyesComma-separated placement IDs to block
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

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

POST /rest-api/campaign/{campaignId}/targeting/platform-rank/create.do

Request examples

Create campaign platform rank targeting.

ParameterInTypeRequiredDescription
platformRankformintegeryesPlatform rank threshold
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is LOWER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

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

POST /rest-api/campaign/{campaignId}/targeting/preset-app-package/create.do

Request examples

Create campaign preset app package targeting.

ParameterInTypeRequiredDescription
appPackageGroupIdformintegeryesUnique numeric ID of the preset app package group
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/preset-domain/create.do

Request examples

Create campaign preset domain targeting.

ParameterInTypeRequiredDescription
domainGroupIdformintegeryesUnique numeric ID of the preset domain group
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/preset-ip-ranges/create.do

Request examples

Create campaign preset IP ranges targeting.

ParameterInTypeRequiredDescription
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign or IP ranges group not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/targeting/price-band/create.do

Request examples

Create campaign price band targeting.

ParameterInTypeRequiredDescription
priceBandformnumberyesPrice band value
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is LOWER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.

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

POST /rest-api/campaign/{campaignId}/targeting/protocol/create.do

Request examples

Create campaign protocol targeting.

ParameterInTypeRequiredDescription
protocolformstringyesProtocol — HTTP or HTTPS Values: HTTP, HTTPS.
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/proxy/create.do

Request examples

Create campaign proxy targeting.

ParameterInTypeRequiredDescription
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.
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/screen-resolution/create.do

Request examples

Create campaign screen resolution targeting.

ParameterInTypeRequiredDescription
relationformstringyesComparison relation Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.
screenWidthformintegeryesScreen width in pixels
screenHeightformintegeryesScreen height in pixels
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/screen-resolution/values.do

Request examples

Get screen resolution targeting values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/site/create.do

Request examples

Create campaign blocked site targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
siteIdformstringyesComma-separated site IDs to block
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

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

POST /rest-api/campaign/{campaignId}/targeting/time-range/create.do

Request examples

Create campaign time range targeting.

ParameterInTypeRequiredDescription
timeFromformstringyesStart time in HH:mm format
timeToformstringyesEnd time in HH:mm format
ruleformstringyesTargeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
clientLocalTimeformbooleannoWhether to use client’s local time instead of server time

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

POST /rest-api/campaign/{campaignId}/targeting/traffic-risk-score/create.do

Request examples

Create campaign traffic risk score targeting.

ParameterInTypeRequiredDescription
riskLevelformstringyesTraffic fraud risk level Values: NOT_SCORED, LOW, LIKELY, HIGH, VERY_HIGH, CERTAIN.
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign
relationformstringnoComparison relation — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL; omitted, it is GREATER_EQUAL Values: LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL, EQUAL.
riskCategoryformarray<string>noOptional risk categories 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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/targeting/traffic-source/create.do

Request examples

Create campaign traffic source targeting.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/targeting/traffic-source/values.do

Request examples

Get traffic source values.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targeting/types.do

Request examples

Get available campaign targeting types.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign

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

POST /rest-api/campaign/{campaignId}/targeting/wifi-traffic/create.do

Request examples

Create campaign WiFi traffic targeting.

ParameterInTypeRequiredDescription
ruleformstringyesTargeting rule type Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.
campaignIdpathintegeryesUnique numeric ID of the campaign

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

GET /rest-api/campaign/{campaignId}/targetings.do

Request examples

Get campaign targeting rules.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
targetTypequerystringnoOptional targeting type filter — when specified, only rules of this type are returned 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).
rulequerystringnoOptional rule filter (INCLUDE or EXCLUDE) — when specified, only rules with this rule type are returned Values: INCLUDE, EXCLUDE, MATCH, NOT_MATCH.

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

DELETE /rest-api/campaign/{campaignId}/targetings.do

Request examples

Delete all campaign targeting rules.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesUnique numeric ID of the campaign
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 — Campaign 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.