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