Browse the help center

Targeting Rules API endpoints

Endpoint reference for the Targeting Rules tag (91 shared 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. 91 shared 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 per-entity endpoints are on their own pages:

This page holds the endpoints shared by every level.

GET /rest-api/matched/{entityType}/{entityId}.do

Request examples

List what an entity’s rules and links match.

ParameterInTypeRequiredDescription
entityTypepathstringyesType of the entity whose matches are listed Values: SITE, ZONE, PLACEMENT, ADVERTISER, CAMPAIGN, BANNER.
entityIdpathintegeryesId of the entity whose matches are listed
categoriesqueryarray<integer>noCategory ids; only entities in one of them are listed
hideInactivequerybooleannoLeave inactive entities out
labelsqueryarray<string>noLabel names; only entities carrying one of them are listed
limitqueryintegernoPage size, 1 to 500
matchByRulesquerybooleannoList what the rules of the entity and its parents match
matchLinkedquerybooleannoList what is linked to the entity
namequerystringnoSubstring of the name
parentIdqueryintegernoOnly the children of this entity, e.g. the zones of site 3001 (with parentType SITE)
parentTypequerystringnoType of parentId Values: ROOT, SITE, ZONE, PLACEMENT, ADVERTISER, CAMPAIGN, BANNER, UNKNOWN.
returnTypequerystringnoType of the matched entities to list: SITE, ZONE or PLACEMENT for a demand-side entity, ADVERTISER, CAMPAIGN or BANNER for a supply-side one. Omitted, it is PLACEMENT for a demand-side entity and BANNER for a supply-side one, the rows of the console’s Matched Placements and Matched Ads cards Values: SITE, ZONE, PLACEMENT, ADVERTISER, CAMPAIGN, BANNER.
startqueryintegerno0-based offset of the first row

Responses: 200 — {total, data:[{id, name, and the ids of the row’s parents: siteId/zoneId/placementId or advertiserId/campaignId/bannerId, parentId}]} · 404 — The entity does not exist or is deleted. Errors follow the shared conventions.

POST /rest-api/preset-app-package/add.do

Request examples

Add preset app package to group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset application package group to add the package to
applicationPackageformstringyesApplication package identifier to add (e.g., com.example.app)

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

GET /rest-api/preset-app-package/all-by-group.do

Request examples

Get preset app packages by group.

ParameterInTypeRequiredDescription
groupIdqueryintegeryesUnique numeric ID of the preset application package group to retrieve packages for

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

DELETE /rest-api/preset-app-package/delete.do

Request examples

Delete preset app package.

ParameterInTypeRequiredDescription
applicationPackageIdformintegeryesUnique numeric ID of the preset application package entry to delete

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

DELETE /rest-api/preset-app-package/group/clear.do

Request examples

Clear preset app package group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset application package group to clear

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

DELETE /rest-api/preset-app-package/group/delete.do

Request examples

Delete preset app package group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset application package group to delete

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

GET /rest-api/preset-app-package/group/list.do

Request examples

List all preset app package groups.

No parameters beyond authentication.

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

POST /rest-api/preset-app-package/group/save.do

Request examples

Save preset app package group.

ParameterInTypeRequiredDescription
titleformstringyesDisplay title for the preset application package group
groupIdformintegernoUnique numeric ID of an existing group to update; omit to create a new group

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

POST /rest-api/preset-app-package/upload-packages.do

Request examples

Upload preset app packages.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset application package group to import packages into

Request body (multipart/form-data, required): form with field file — File containing application package identifiers to import (one per line).

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

POST /rest-api/preset-domain/domain/add.do

Request examples

Add preset domain to group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset domain group to add the domain to
domainformstringyesDomain name to add (must be a valid domain, e.g., example.com)

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

GET /rest-api/preset-domain/domain/all-by-group.do

Request examples

Get preset domains by group.

ParameterInTypeRequiredDescription
groupIdqueryintegeryesUnique numeric ID of the preset domain group to retrieve domains for

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

DELETE /rest-api/preset-domain/domain/delete.do

Request examples

Delete preset domain.

ParameterInTypeRequiredDescription
domainIdformintegeryesUnique numeric ID of the preset domain entry to delete

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

DELETE /rest-api/preset-domain/group/clear.do

Request examples

Clear preset domain group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset domain group to clear

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

DELETE /rest-api/preset-domain/group/delete.do

Request examples

Delete preset domain group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset domain group to delete

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

GET /rest-api/preset-domain/group/list.do

Request examples

List all preset domain groups.

No parameters beyond authentication.

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

POST /rest-api/preset-domain/group/save.do

Request examples

Save preset domain group.

ParameterInTypeRequiredDescription
titleformstringyesDisplay title for the preset domain group
groupIdformintegernoUnique numeric ID of an existing group to update; omit to create a new group

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

POST /rest-api/preset-domain/group/upload-domains.do

Request examples

Upload preset domains.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset domain group to import domains into

Request body (multipart/form-data, required): form with field file — File containing domains to import (one domain per line, or DMCA zip format).

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

DELETE /rest-api/preset-ip-ranges/group/clear.do

Request examples

Clear preset IP ranges group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset IP ranges group to clear

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

DELETE /rest-api/preset-ip-ranges/group/delete.do

Request examples

Delete preset IP ranges group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset IP ranges group to delete

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

POST /rest-api/preset-ip-ranges/group/save.do

Request examples

Save preset IP ranges group.

ParameterInTypeRequiredDescription
titleformstringyesDisplay title for the preset IP ranges group
groupIdformintegernoUnique numeric ID of an existing group to update; omit to create a new group

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

POST /rest-api/preset-ip-ranges/group/upload-ip-ranges.do

Request examples

Upload preset IP ranges.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset IP ranges group to import ranges into

Request body (multipart/form-data, required): form with field file — File containing IP ranges to import (one range per line).

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

POST /rest-api/preset-ip-ranges/ip-range/add.do

Request examples

Add preset IP range to group.

ParameterInTypeRequiredDescription
groupIdformintegeryesUnique numeric ID of the preset IP ranges group to add the range to
fromformstringyesStart IPv4 address of the range (e.g., 192.168.1.0)
toformstringyesEnd IPv4 address of the range (e.g., 192.168.1.255)

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

GET /rest-api/preset-ip-ranges/ip-range/all-by-group.do

Request examples

Get preset IP ranges by group.

ParameterInTypeRequiredDescription
groupIdqueryintegeryesUnique numeric ID of the preset IP ranges group to retrieve IP ranges for

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

DELETE /rest-api/preset-ip-ranges/ip-range/delete.do

Request examples

Delete preset IP range.

ParameterInTypeRequiredDescription
ipRangeIdformintegeryesUnique numeric ID of the preset IP range entry to delete

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

GET /rest-api/preset-ip-ranges/ip-ranges/list.do

Request examples

List all preset IP ranges groups.

No parameters beyond authentication.

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

GET /rest-api/rule/{ruleId}.do

Request examples

Get rule by ID.

ParameterInTypeRequiredDescription
ruleIdpathintegeryesThe unique numeric identifier of the rule to retrieve

Responses: 200 — Successfully retrieved rule · 404 — Rule not found. Errors follow the shared conventions.

POST /rest-api/rule/{ruleId}/delete.do

Request examples

Delete a rule.

ParameterInTypeRequiredDescription
ruleIdpathintegeryesThe unique numeric identifier of the rule to delete

Responses: 200 — Rule deleted successfully · 404 — Rule not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/rule/{ruleId}/matches/add.do

Request examples

Add rule matches to rule.

ParameterInTypeRequiredDescription
ruleIdpathintegeryesThe unique numeric identifier of the rule to add matches to

Request body (application/json, required): JSON array; each element a JSON object with fields categories, id, include, labels, operator.

Responses: 200 — Rule matches added successfully · 404 — Rule not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/rule/{ruleId}/matches/remove.do

Request examples

Remove all rule matches.

ParameterInTypeRequiredDescription
ruleIdpathintegeryesThe unique numeric identifier of the rule whose matches should all be removed

Responses: 200 — All rule matches removed successfully · 404 — Rule not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/rule/{ruleId}/update.do

Request examples

Update an existing rule.

ParameterInTypeRequiredDescription
ruleIdpathintegeryesThe unique numeric identifier of the rule to update

Request body (application/json, required): JSON object with fields active, defaultForAdvertiser, defaultForBanner, defaultForCampaign, defaultForPlacement, defaultForSite, defaultForZone, id, name, ruleMatches, type.

Responses: 200 — Rule updated successfully · 404 — Rule not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/rule/create.do

Request examples

Create a new rule.

Request body (application/json, required): JSON object with fields active, defaultForAdvertiser, defaultForBanner, defaultForCampaign, defaultForPlacement, defaultForSite, defaultForZone, id, name, ruleMatches, type.

Responses: 200 — Rule created successfully · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/rules.do

Request examples

List all rules.

No parameters beyond authentication.

Responses: 200 — Successfully retrieved rules list · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/rules/advertiser/{advertiserId}/add.do

Request examples

Add rules group to advertiser.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesThe unique numeric identifier of the advertiser to add the rules group to
ruleIdsformarray<integer>yesArray of rule IDs to include in the new rules group (at least one required)
includeformbooleanyesWhether the rules group is an inclusion (true) or exclusion (false) filter
operatorformstringyesLogical operator for combining rules within the group: AND (all must match) or OR (any must match) Values: AND, OR.

Responses: 200 — Rules group added successfully · 404 — Advertiser not found. Errors follow the shared conventions.

POST /rest-api/rules/advertiser/{advertiserId}/disable.do

Request examples

Disable advertiser rules.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesThe unique numeric identifier of the advertiser whose targeting rules should be disabled

Responses: 200 — Rules disabled successfully · 404 — Advertiser not found. Errors follow the shared conventions.

POST /rest-api/rules/advertiser/{advertiserId}/enable.do

Request examples

Enable advertiser rules.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesThe unique numeric identifier of the advertiser whose targeting rules should be enabled

Responses: 200 — Rules enabled successfully · 404 — Advertiser not found. Errors follow the shared conventions.

GET /rest-api/rules/advertiser/{advertiserId}/get.do

Request examples

Get advertiser rules.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesThe unique numeric identifier of the advertiser whose rules groups should be retrieved

Responses: 200 — Successfully retrieved rules · 404 — Advertiser not found. Errors follow the shared conventions.

POST /rest-api/rules/advertiser/{advertiserId}/remove.do

Request examples

Remove rules group from advertiser.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesThe unique numeric identifier of the advertiser to remove the rules group from
ruleGroupIdformintegeryesThe unique numeric identifier of the rules group to remove

Responses: 200 — Rules group removed successfully · 404 — Advertiser not found, or the rules group is not one of its groups. Errors follow the shared conventions.

GET /rest-api/rules/advertiser/available-rules.do

Request examples

Get available rules by type.

ParameterInTypeRequiredDescription
typequerystringyesThe targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) Values: CAMPAIGN, INVENTORY.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/advertiser/available-types.do

Request examples

Get available rule types.

No parameters beyond authentication.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/advertiser/show-details.do

Request examples

Get rule group details.

ParameterInTypeRequiredDescription
ruleGroupIdqueryintegeryesThe unique numeric identifier of the rule group to retrieve

Responses: 200 — Success · 404 — No such rule group on an entity of this type that the caller may view. Errors follow the shared conventions.

POST /rest-api/rules/banner/{bannerId}/add.do

Request examples

Add rules group to banner.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesThe unique numeric identifier of the banner to add the rules group to
ruleIdsformarray<integer>yesArray of rule IDs to include in the new rules group (at least one required)
includeformbooleanyesWhether the rules group is an inclusion (true) or exclusion (false) filter
operatorformstringyesLogical operator for combining rules within the group: AND (all must match) or OR (any must match) Values: AND, OR.

Responses: 200 — Rules group added successfully · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/rules/banner/{bannerId}/disable.do

Request examples

Disable banner rules.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesThe unique numeric identifier of the banner whose targeting rules should be disabled

Responses: 200 — Rules disabled successfully · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/rules/banner/{bannerId}/enable.do

Request examples

Enable banner rules.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesThe unique numeric identifier of the banner whose targeting rules should be enabled

Responses: 200 — Rules enabled successfully · 404 — Banner not found. Errors follow the shared conventions.

GET /rest-api/rules/banner/{bannerId}/get.do

Request examples

Get banner rules.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesThe unique numeric identifier of the banner whose rules groups should be retrieved

Responses: 200 — Successfully retrieved rules · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/rules/banner/{bannerId}/remove.do

Request examples

Remove rules group from banner.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesThe unique numeric identifier of the banner to remove the rules group from
ruleGroupIdformintegeryesThe unique numeric identifier of the rules group to remove

Responses: 200 — Rules group removed successfully · 404 — Banner not found, or the rules group is not one of its groups. Errors follow the shared conventions.

GET /rest-api/rules/banner/available-rules.do

Request examples

Get available rules by type.

ParameterInTypeRequiredDescription
typequerystringyesThe targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) Values: CAMPAIGN, INVENTORY.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/banner/available-types.do

Request examples

Get available rule types.

No parameters beyond authentication.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/banner/show-details.do

Request examples

Get rule group details.

ParameterInTypeRequiredDescription
ruleGroupIdqueryintegeryesThe unique numeric identifier of the rule group to retrieve

Responses: 200 — Success · 404 — No such rule group on an entity of this type that the caller may view. Errors follow the shared conventions.

POST /rest-api/rules/campaign/{campaignId}/add.do

Request examples

Add rules group to campaign.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesThe unique numeric identifier of the campaign to add the rules group to
ruleIdsformarray<integer>yesArray of rule IDs to include in the new rules group (at least one required)
includeformbooleanyesWhether the rules group is an inclusion (true) or exclusion (false) filter
operatorformstringyesLogical operator for combining rules within the group: AND (all must match) or OR (any must match) Values: AND, OR.

Responses: 200 — Rules group added successfully · 404 — Campaign not found. Errors follow the shared conventions.

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

Request examples

Disable campaign rules.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesThe unique numeric identifier of the campaign whose targeting rules should be disabled

Responses: 200 — Rules disabled successfully · 404 — Campaign not found. Errors follow the shared conventions.

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

Request examples

Enable campaign rules.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesThe unique numeric identifier of the campaign whose targeting rules should be enabled

Responses: 200 — Rules enabled successfully · 404 — Campaign not found. Errors follow the shared conventions.

GET /rest-api/rules/campaign/{campaignId}/get.do

Request examples

Get campaign rules.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesThe unique numeric identifier of the campaign whose rules groups should be retrieved

Responses: 200 — Successfully retrieved rules · 404 — Campaign not found. Errors follow the shared conventions.

POST /rest-api/rules/campaign/{campaignId}/remove.do

Request examples

Remove rules group from campaign.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesThe unique numeric identifier of the campaign to remove the rules group from
ruleGroupIdformintegeryesThe unique numeric identifier of the rules group to remove

Responses: 200 — Rules group removed successfully · 404 — Campaign not found, or the rules group is not one of its groups. Errors follow the shared conventions.

GET /rest-api/rules/campaign/available-rules.do

Request examples

Get available rules by type.

ParameterInTypeRequiredDescription
typequerystringyesThe targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) Values: CAMPAIGN, INVENTORY.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/campaign/available-types.do

Request examples

Get available rule types.

No parameters beyond authentication.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/campaign/show-details.do

Request examples

Get rule group details.

ParameterInTypeRequiredDescription
ruleGroupIdqueryintegeryesThe unique numeric identifier of the rule group to retrieve

Responses: 200 — Success · 404 — No such rule group on an entity of this type that the caller may view. Errors follow the shared conventions.

POST /rest-api/rules/placement/{placementId}/add.do

Request examples

Add rules group to placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesThe unique numeric identifier of the placement to add the rules group to
ruleIdsformarray<integer>yesArray of rule IDs to include in the new rules group (at least one required)
includeformbooleanyesWhether the rules group is an inclusion (true) or exclusion (false) filter
operatorformstringyesLogical operator for combining rules within the group: AND (all must match) or OR (any must match) Values: AND, OR.

Responses: 200 — Rules group added successfully · 404 — Placement not found. Errors follow the shared conventions.

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

Request examples

Disable placement rules.

ParameterInTypeRequiredDescription
placementIdpathintegeryesThe unique numeric identifier of the placement whose targeting rules should be disabled

Responses: 200 — Rules disabled successfully · 404 — Placement not found. Errors follow the shared conventions.

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

Request examples

Enable placement rules.

ParameterInTypeRequiredDescription
placementIdpathintegeryesThe unique numeric identifier of the placement whose targeting rules should be enabled

Responses: 200 — Rules enabled successfully · 404 — Placement not found. Errors follow the shared conventions.

GET /rest-api/rules/placement/{placementId}/get.do

Request examples

Get placement rules.

ParameterInTypeRequiredDescription
placementIdpathintegeryesThe unique numeric identifier of the placement whose rules groups should be retrieved

Responses: 200 — Successfully retrieved rules · 404 — Placement not found. Errors follow the shared conventions.

POST /rest-api/rules/placement/{placementId}/remove.do

Request examples

Remove rules group from placement.

ParameterInTypeRequiredDescription
placementIdpathintegeryesThe unique numeric identifier of the placement to remove the rules group from
ruleGroupIdformintegeryesThe unique numeric identifier of the rules group to remove

Responses: 200 — Rules group removed successfully · 404 — Placement not found, or the rules group is not one of its groups. Errors follow the shared conventions.

GET /rest-api/rules/placement/available-rules.do

Request examples

Get available rules by type.

ParameterInTypeRequiredDescription
typequerystringyesThe targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) Values: CAMPAIGN, INVENTORY.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/placement/available-types.do

Request examples

Get available rule types.

No parameters beyond authentication.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/placement/show-details.do

Request examples

Get rule group details.

ParameterInTypeRequiredDescription
ruleGroupIdqueryintegeryesThe unique numeric identifier of the rule group to retrieve

Responses: 200 — Success · 404 — No such rule group on an entity of this type that the caller may view. Errors follow the shared conventions.

POST /rest-api/rules/site/{siteId}/add.do

Request examples

Add rules group to site.

ParameterInTypeRequiredDescription
siteIdpathintegeryesThe unique numeric identifier of the site to add the rules group to
ruleIdsformarray<integer>yesArray of rule IDs to include in the new rules group (at least one required)
includeformbooleanyesWhether the rules group is an inclusion (true) or exclusion (false) filter
operatorformstringyesLogical operator for combining rules within the group: AND (all must match) or OR (any must match) Values: AND, OR.

Responses: 200 — Rules group added successfully · 404 — Site not found. Errors follow the shared conventions.

POST /rest-api/rules/site/{siteId}/disable.do

Request examples

Disable site rules.

ParameterInTypeRequiredDescription
siteIdpathintegeryesThe unique numeric identifier of the site whose targeting rules should be disabled

Responses: 200 — Rules disabled successfully · 404 — Site not found. Errors follow the shared conventions.

POST /rest-api/rules/site/{siteId}/enable.do

Request examples

Enable site rules.

ParameterInTypeRequiredDescription
siteIdpathintegeryesThe unique numeric identifier of the site whose targeting rules should be enabled

Responses: 200 — Rules enabled successfully · 404 — Site not found. Errors follow the shared conventions.

GET /rest-api/rules/site/{siteId}/get.do

Request examples

Get site rules.

ParameterInTypeRequiredDescription
siteIdpathintegeryesThe unique numeric identifier of the site whose rules groups should be retrieved

Responses: 200 — Successfully retrieved rules · 404 — Site not found. Errors follow the shared conventions.

POST /rest-api/rules/site/{siteId}/remove.do

Request examples

Remove rules group from site.

ParameterInTypeRequiredDescription
siteIdpathintegeryesThe unique numeric identifier of the site to remove the rules group from
ruleGroupIdformintegeryesThe unique numeric identifier of the rules group to remove

Responses: 200 — Rules group removed successfully · 404 — Site not found, or the rules group is not one of its groups. Errors follow the shared conventions.

GET /rest-api/rules/site/available-rules.do

Request examples

Get available rules by type.

ParameterInTypeRequiredDescription
typequerystringyesThe targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) Values: CAMPAIGN, INVENTORY.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/site/available-types.do

Request examples

Get available rule types.

No parameters beyond authentication.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/site/show-details.do

Request examples

Get rule group details.

ParameterInTypeRequiredDescription
ruleGroupIdqueryintegeryesThe unique numeric identifier of the rule group to retrieve

Responses: 200 — Success · 404 — No such rule group on an entity of this type that the caller may view. Errors follow the shared conventions.

POST /rest-api/rules/zone/{zoneId}/add.do

Request examples

Add rules group to zone.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesThe unique numeric identifier of the zone to add the rules group to
ruleIdsformarray<integer>yesArray of rule IDs to include in the new rules group (at least one required)
includeformbooleanyesWhether the rules group is an inclusion (true) or exclusion (false) filter
operatorformstringyesLogical operator for combining rules within the group: AND (all must match) or OR (any must match) Values: AND, OR.

Responses: 200 — Rules group added successfully · 404 — Zone not found. Errors follow the shared conventions.

POST /rest-api/rules/zone/{zoneId}/disable.do

Request examples

Disable zone rules.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesThe unique numeric identifier of the zone whose targeting rules should be disabled

Responses: 200 — Rules disabled successfully · 404 — Zone not found. Errors follow the shared conventions.

POST /rest-api/rules/zone/{zoneId}/enable.do

Request examples

Enable zone rules.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesThe unique numeric identifier of the zone whose targeting rules should be enabled

Responses: 200 — Rules enabled successfully · 404 — Zone not found. Errors follow the shared conventions.

GET /rest-api/rules/zone/{zoneId}/get.do

Request examples

Get zone rules.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesThe unique numeric identifier of the zone whose rules groups should be retrieved

Responses: 200 — Successfully retrieved rules · 404 — Zone not found. Errors follow the shared conventions.

POST /rest-api/rules/zone/{zoneId}/remove.do

Request examples

Remove rules group from zone.

ParameterInTypeRequiredDescription
zoneIdpathintegeryesThe unique numeric identifier of the zone to remove the rules group from
ruleGroupIdformintegeryesThe unique numeric identifier of the rules group to remove

Responses: 200 — Rules group removed successfully · 404 — Zone not found, or the rules group is not one of its groups. Errors follow the shared conventions.

GET /rest-api/rules/zone/available-rules.do

Request examples

Get available rules by type.

ParameterInTypeRequiredDescription
typequerystringyesThe targeting rule type to filter by (e.g. CAMPAIGN or INVENTORY) Values: CAMPAIGN, INVENTORY.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/zone/available-types.do

Request examples

Get available rule types.

No parameters beyond authentication.

Responses: 200 — Success. Errors follow the shared conventions.

GET /rest-api/rules/zone/show-details.do

Request examples

Get rule group details.

ParameterInTypeRequiredDescription
ruleGroupIdqueryintegeryesThe unique numeric identifier of the rule group to retrieve

Responses: 200 — Success · 404 — No such rule group on an entity of this type that the caller may view. Errors follow the shared conventions.

GET /rest-api/target/advertiser/{advertiserId}/blocked-placements.do

Request examples

Get blocked placements targetings.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesUnique numeric ID of the advertiser

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

GET /rest-api/target/advertiser/{advertiserId}/blocked-sites.do

Request examples

Get blocked sites targetings.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesUnique numeric ID of the advertiser

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

GET /rest-api/targeting/country/region/city/values.do

Request examples

Get city values.

ParameterInTypeRequiredDescription
countryCodequerystringyesISO country code
regionNamequerystringyesRegion name as returned by the region values endpoint

Responses: 200 — Success · 500 — Internal server error · 503 — The geo service did not answer; retry later. Errors follow the shared conventions.

GET /rest-api/targeting/country/region/values.do

Request examples

Get region values.

ParameterInTypeRequiredDescription
countryCodequerystringyesISO country code

Responses: 200 — Success · 500 — Internal server error · 503 — The geo service did not answer; retry later. Errors follow the shared conventions.

GET /rest-api/targeting/country/values.do

Request examples

Get country values.

No parameters beyond authentication.

Responses: 200 — Success · 500 — Internal server error · 503 — The geo service holding the country list did not answer; retry later. Errors follow the shared conventions.

GET /rest-api/targeting/dmp/{dmp}/segments.do

Request examples

Get DMP segments.

ParameterInTypeRequiredDescription
dmppathstringyesDMP — enum name or numeric ID Values: FIRST_PARTY, DTSCOUT, AIDATA, LOTAME, SITEMATH, MEDIAQUARK, JOTTIX.
parentIdqueryintegernoOptional parent segment ID; omit for the top level

Responses: 200 — Success; empty when parentId is not a segment of this DMP · 404 — Not found — resource does not exist · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/targeting/dmp/values.do

Request examples

Get DMP values.

No parameters beyond authentication.

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

GET /rest-api/targeting/language/values.do

Request examples

Get language values.

No parameters beyond authentication.

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

GET /rest-api/targeting/mobile-carrier/bycountry/values.do

Request examples

Get mobile carrier values by country.

ParameterInTypeRequiredDescription
countryCodequerystringnoOptional ISO country code to filter mobile carriers by country (e.g., US, GB, DE), under the name the other targeting value operations use
countryquerystringnoThe same filter under its older name; countryCode wins when both are sent

Responses: 200 — Success · 500 — Internal server error · 503 — The geo service did not answer. Errors follow the shared conventions.

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

Request examples

Get OS versions.

ParameterInTypeRequiredDescription
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 — Not found — resource does not exist · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/targeting/operating-system/values.do

Request examples

Get OS values.

No parameters beyond authentication.

Responses: 200 — Success · 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.