Soft-deletes the campaign with the given ID and sends the campaign-deleted notification.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/delete.do
Soft-deletes the campaign with the given ID and sends the campaign-deleted notification. The caller must have DELETE permission on the campaign's advertiser. Returns {"success":true} on success, or {"error":"permission_denied","success":false} on insufficient privileges. For 90 days POST /rest-api/deleted-entities/CAMPAIGN/{id}/restore brings it back, links included.
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/delete.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());