Creates a new targeting rules group and associates it with the specified campaign.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rules/campaign/{campaignId}/add.do
Creates a new targeting rules group and associates it with the specified campaign. 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 campaign's advertiser 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
campaignIdintegerrequired
The unique numeric identifier of the campaign to add the rules group to
1234
Form Params
ruleIdsarray<integer>required
Array of rule IDs to include in the new rules group (at least one required)
200
includebooleanrequired
Whether the rules group is an inclusion (true) or exclusion (false) filter
true
operatorstringrequired
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