Browse the help center

Delete all site targeting rules

Deletes every targeting rule of the site, or only those matching the optional type and rule filters.

Reference
DELETE https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targetings.do

Deletes every targeting rule of the site, or only those matching the optional type and rule filters. Nothing is deleted unless the caller holds the pre-targeting permission of every matching rule's type. Targeting stays enabled. The response carries the number of deleted rules. Requires UPDATE permission on the site and MANAGE_SUPPLY_PRE_TARGETING user permission.

Path Params

siteId integer required

Unique numeric ID of the site

3001

Form Params

targetType string

Optional targeting type filter — only rules of this type are deleted

COUNTRY

rule string

Optional rule filter — only INCLUDE or only EXCLUDE rules are deleted

EXCLUDE

Responses

200

Success — the response carries the deleted count

400

Unknown targeting type or rule

401

Unauthorized

403

Forbidden

404

Site not found

500

Internal server error

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.