Sets whether the campaign's rule types must all match (AND) or any one of them is enough (OR).
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/targeting/operation-between-rule-types.do
Sets whether the campaign's rule types must all match (AND) or any one of them is enough (OR). Rules of the same type always combine with OR. Requires UPDATE permission on the campaign, MANAGE_DEMAND_TARGETING and MANAGE_OPERATION_BETWEEN_TARGETING_RULE_TYPES user permissions.
Path Params
campaignIdintegerrequired
Unique numeric ID of the campaign
1234
Form Params
operatorstringrequired
AND — every rule type must match; OR — any one rule type is enough
AND
Responses
200
Success — the response carries the saved operationBetweenRuleTypes
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/campaign/1234/targeting/operation-between-rule-types.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["operator"] = "AND" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());