Retrieves all piggyback tracking pixels currently associated with the specified campaign.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/campaign/get.do
Retrieves all piggyback tracking pixels currently associated with the specified campaign. The response JSON contains a 'campaign_piggybacks' array with each piggyback's ID, type (BEACON or URL), code/URL value, status, and sampling configuration. The caller must have view permissions on the campaign and the Piggyback Pixel Tracking permission. A deleted campaign, or one whose advertiser is deleted, answers 404: its piggyback rows outlive the soft delete but are no longer readable.
Query Params
idintegerrequired
The unique numeric identifier of the campaign whose piggyback tracking pixels should be retrieved
2001
Responses
200
Campaign piggybacks retrieved 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
404
Campaign not found or deleted, or its advertiser is deleted
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/campaign/get.do?id=2001");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());