Disables all piggyback tracking pixels associated with the specified placement so they stop firing during ad serving.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/placement/disable.do
Disables all piggyback tracking pixels associated with the specified placement so they stop firing during ad serving. This is a bulk operation that sets the piggyback status to DISABLED for every piggyback attached to the placement. The caller must have update permissions on the placement's parent site. Returns a JSON object with a 'success' boolean.
Form Params
idintegerrequired
The unique numeric identifier of the placement whose piggyback pixels should be disabled
4001
Responses
200
Placement piggybacks disabled successfully
400
Bad request - id is missing
401
Unauthorized - authentication error
403
Forbidden - no update rights on the placement, or the Piggyback Pixel Tracking permission is not enabled
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/placement/disable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["id"] = "4001" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());