Sets whether the banner's rule types must all match (AND) or any one of them is enough (OR).
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/targeting/operation-between-rule-types.do
Sets whether the banner'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 banner's campaign, MANAGE_DEMAND_TARGETING and MANAGE_OPERATION_BETWEEN_TARGETING_RULE_TYPES user permissions.
Path Params
bannerIdintegerrequired
Unique numeric ID of the banner
7890
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/banner/7890/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());