Browse the help center

Add rules group to banner

Creates a new targeting rules group and associates it with the specified banner.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/{bannerId}/add.do

Creates a new targeting rules group and associates it with the specified banner. A rules group bundles one or more individual rules together with a logical operator (AND/OR) and an include/exclude flag that determines whether matching traffic is allowed or blocked. The response JSON contains 'success: true' and a 'ruleGroupId' field with the newly created group's ID. Requires UPDATE permission on the banner's parent advertiser campaign share and CAMPAIGN_RULES_MANAGEMENT permission. POST only: a GET answers 405, since a state change over GET can be triggered by a prefetch or an embedded link.

Path Params

bannerId integer required

The unique numeric identifier of the banner to add the rules group to

7890

Form Params

ruleIds array<integer> required

Array of rule IDs to include in the new rules group (at least one required)

200

include boolean required

Whether the rules group is an inclusion (true) or exclusion (false) filter

true

operator string required

Logical operator for combining rules within the group: AND (all must match) or OR (any must match)

AND

Responses

200

Rules group added successfully

400

Bad request - ruleIds is empty or names a rule that does not exist

401

Unauthorized - authentication error

403

Forbidden - insufficient permissions

404

Banner not found

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.