Clears the global (country='*') 3rd party tracking code from multiple placements in a single batch request.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/placement/global-clear/batch.do
Clears the global (country='*') 3rd party tracking code from multiple placements in a single batch request. This only removes the global tracking code; country-specific tracking codes for each placement remain untouched. The response is a JSON map keyed by placement ID, where each value is an object with a 'success' boolean indicating the result for that placement.
Form Params
domainIdsarray<integer>required
Array of unique numeric placement identifiers to clear global tracking codes from
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/placement/global-clear/batch.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["domainIds"] = "4001" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());