Browse the help center

Delete all banner targeting rules

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

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

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

Path Params

bannerId integer required

Unique numeric ID of the banner

7890

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

Banner 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.