Unlinks the specified placements from the given banner by removing their banner-to-placement associations. All provided placement IDs must currently be linked to the banner; attempting to remove an unlinked placement returns an error. The caller must have the LINK_PLACEMENTS_TO_BANNERS permission (shared or all level). Returns a JSON object with 'success' status, or an error if the placements are not found, not linked, or the user lacks permissions.
Path Params
bannerIdintegerrequired
Unique identifier of the banner to remove placement links from
42
Form Params
removeIdsarray<integer>
Array of placement IDs to unlink from the banner. All IDs must currently be linked to the banner
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/banners/42/placements.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["removeIds"] = "3001" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());