Enables all piggyback tracking pixels associated with the specified campaign so they begin firing during ad serving.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/campaign/enable.do
Enables all piggyback tracking pixels associated with the specified campaign so they begin firing during ad serving. This is a bulk operation that sets the piggyback status to ENABLED for every piggyback attached to the campaign. The caller must have update permissions on the campaign and the Piggyback Pixel Tracking permission. Returns a JSON object with a 'success' boolean. If the campaign does not exist, a 404 Not Found error is returned.
Form Params
idintegerrequired
The unique numeric identifier of the campaign whose piggyback pixels should be enabled
2001
Responses
200
Campaign piggybacks enabled successfully
400
Bad request — invalid or missing parameters
401
Unauthorized - authentication error
403
Forbidden - no rights on the campaign, 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/campaign/enable.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["id"] = "2001" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());