Deactivates the targeting rules engine for the specified banner, so its rule groups no longer affect ad serving decisions.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/{bannerId}/disable.do
Deactivates the targeting rules engine for the specified banner, so its rule groups no longer affect ad serving decisions. The banner is identified by its numeric ID in the URL path. The response is a JSON object with 'success: true' on success. Requires UPDATE permission on the banner's parent advertiser campaign share and CAMPAIGN_RULES_MANAGEMENT permission. The action is logged for audit purposes. POST only: a GET answers 405, since a state change over GET can be triggered by a prefetch or an embedded link.
Path Params
bannerIdintegerrequired
The unique numeric identifier of the banner whose targeting rules should be disabled
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/rules/banner/7890/disable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());