Browse the help center

Piggybacks API endpoints

Endpoint reference for the Piggybacks tag (18 endpoints): Piggyback tracking pixel management for campaigns, placements, and sites

Reference network manager admin

Piggyback tracking pixel management for campaigns, placements, and sites. 18 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

DELETE /rest-api/piggyback/campaign/{id}.do

Request examples

Delete campaign piggyback.

ParameterInTypeRequiredDescription
idpathintegeryesThe unique numeric identifier of the piggyback tracking pixel to delete

Responses: 200 — Campaign piggyback deleted successfully · 404 — Not found — resource does not exist · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/campaign/disable.do

Request examples

Disable campaign piggybacks.

ParameterInTypeRequiredDescription
idformintegeryesThe unique numeric identifier of the campaign whose piggyback pixels should be disabled

Responses: 200 — Campaign piggybacks disabled successfully · 404 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/campaign/enable.do

Request examples

Enable campaign piggybacks.

ParameterInTypeRequiredDescription
idformintegeryesThe unique numeric identifier of the campaign whose piggyback pixels should be enabled

Responses: 200 — Campaign piggybacks enabled successfully · 404 — Campaign not found · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/piggyback/campaign/get.do

Request examples

Get campaign piggybacks.

ParameterInTypeRequiredDescription
idqueryintegeryesThe unique numeric identifier of the campaign whose piggyback tracking pixels should be retrieved

Responses: 200 — Campaign piggybacks retrieved successfully · 404 — Campaign not found. Errors follow the shared conventions.

POST /rest-api/piggyback/campaign/save.do

Request examples

Save campaign piggyback.

ParameterInTypeRequiredDescription
campaignIdformintegeryesThe unique numeric identifier of the campaign to attach the new piggyback tracking pixel to
actionIdformintegerconditionalConditionally required — when allActions is false; ignored when it is true. The unique numeric identifier of the action to attach the piggyback to
allActionsformbooleannoWhen true, the piggyback is applied to all actions of the campaign, making actionId unnecessary
siteIdformintegernoOptional site ID to scope this piggyback to a specific site within the campaign
placementIdformintegernoOptional placement ID to scope this piggyback to a specific placement within the campaign
idformintegernoID of an existing piggyback of this campaign to edit instead of creating a new one; one that is not the campaign’s answers 400
activeformbooleannoWhether this piggyback is active
codeUrlformstringnoPiggyback URL or HTML/JavaScript code
deliveryAttributionformstringnoWhich conversions this piggyback fires for: ALL, POST_CLICK_ONLY or POST_VIEW_ONLY Values: ALL, POST_CLICK_ONLY, POST_VIEW_ONLY.
samplingformintegernoSampling rate percentage (0-100) controlling how often the piggyback fires
typeformstringnoPiggyback type: URL (a URL fired as a pixel) or BEACON (an HTML/JavaScript snippet) Values: BEACON, URL.

Responses: 200 — Campaign piggyback saved successfully · 404 — Campaign, site or placement not found or deleted · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/campaign/update.do

Request examples

Update campaign piggyback.

ParameterInTypeRequiredDescription
campaignIdformintegeryesThe unique numeric identifier of the campaign whose piggyback pixels should be updated

Request body (application/json, required): JSON array of objects.

Responses: 200 — Campaign piggyback updated successfully · 404 — Campaign, site or placement not found or deleted · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/placement.do

Request examples

Save placement piggyback.

ParameterInTypeRequiredDescription
placementIdformintegeryesThe unique numeric identifier of the placement to attach the new piggyback tracking pixel to
campaignIdformintegeryesThe unique numeric identifier of the campaign that the placement belongs to
actionIdformintegerconditionalConditionally required — when allActions is false; ignored when it is true. The unique numeric identifier of the action to attach the piggyback to
allActionsformbooleannoWhen true, the piggyback is applied to all actions of the campaign, making actionId unnecessary
idformintegernoID of an existing piggyback of this placement to edit instead of creating a new one; one that is not the placement’s answers 400
activeformbooleannoWhether this piggyback is active
codeUrlformstringnoPiggyback URL or HTML/JavaScript code
deliveryAttributionformstringnoWhich conversions this piggyback fires for: ALL, POST_CLICK_ONLY or POST_VIEW_ONLY Values: ALL, POST_CLICK_ONLY, POST_VIEW_ONLY.
samplingformintegernoSampling rate percentage (0-100) controlling how often the piggyback fires
typeformstringnoPiggyback type: URL (a URL fired as a pixel) or BEACON (an HTML/JavaScript snippet) Values: BEACON, URL.

Responses: 200 — Placement piggyback saved successfully · 404 — Placement not found or deleted, or campaign not found · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/placement/{id}/delete.do

Request examples

Delete a placement piggyback.

ParameterInTypeRequiredDescription
idpathintegeryesThe unique numeric identifier of the piggyback to delete

Responses: 200 — Piggyback deleted · 404 — No placement piggyback with this id. Errors follow the shared conventions.

POST /rest-api/piggyback/placement/{id}/update.do

Request examples

Update a placement piggyback.

ParameterInTypeRequiredDescription
idpathintegeryesThe unique numeric identifier of the piggyback to change
actionIdformintegernoFire only for this action; ignored when allActions is true
activeformbooleannoWhether the piggyback fires
allActionsformbooleannotrue to fire for every action of the campaign
codeUrlformstringnoNew tracking code (BEACON) or URL (URL type)
deliveryAttributionformstringnoWhich conversions the piggyback fires for: ALL, POST_CLICK_ONLY or POST_VIEW_ONLY Values: ALL, POST_CLICK_ONLY, POST_VIEW_ONLY.
samplingformintegernoPercentage of conversions the piggyback fires on (0-100)

Responses: 200 — Piggyback updated (success:true), or success:false with per-field ‘errors’ · 404 — No placement piggyback with this id. Errors follow the shared conventions.

POST /rest-api/piggyback/placement/disable.do

Request examples

Disable placement piggybacks.

ParameterInTypeRequiredDescription
idformintegeryesThe unique numeric identifier of the placement whose piggyback pixels should be disabled

Responses: 200 — Placement piggybacks disabled successfully · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/placement/enable.do

Request examples

Enable placement piggybacks.

ParameterInTypeRequiredDescription
idformintegeryesThe unique numeric identifier of the placement whose piggyback pixels should be enabled

Responses: 200 — Placement piggybacks enabled successfully · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/piggyback/placement/get.do

Request examples

Get placement piggybacks.

ParameterInTypeRequiredDescription
placementIdqueryintegeryesThe unique numeric identifier of the placement whose piggyback tracking pixels should be retrieved

Responses: 200 — Placement piggybacks retrieved successfully · 404 — Placement not found. Errors follow the shared conventions.

POST /rest-api/piggyback/site.do

Request examples

Save site piggyback.

ParameterInTypeRequiredDescription
siteIdformintegeryesThe unique numeric identifier of the site to attach the new piggyback tracking pixel to
actionIdformintegerconditionalConditionally required — when allActions is false; ignored when it is true. The unique numeric identifier of the action to attach the piggyback to
allActionsformbooleannoWhen true, the piggyback is applied to all actions, making actionId unnecessary
campaignIdformintegernoOptional campaign ID to associate the piggyback with a specific campaign
idformintegernoID of an existing piggyback of this site to edit instead of creating a new one; one that is not the site’s answers 400
activeformbooleannoWhether this piggyback is active
codeUrlformstringnoPiggyback URL or HTML/JavaScript code
deliveryAttributionformstringnoWhich conversions this piggyback fires for: ALL, POST_CLICK_ONLY or POST_VIEW_ONLY Values: ALL, POST_CLICK_ONLY, POST_VIEW_ONLY.
samplingformintegernoSampling rate percentage (0-100) controlling how often the piggyback fires
typeformstringnoPiggyback type: URL (a URL fired as a pixel) or BEACON (an HTML/JavaScript snippet) Values: BEACON, URL.

Responses: 200 — Site piggyback saved successfully · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/site/{id}/delete.do

Request examples

Delete a site piggyback.

ParameterInTypeRequiredDescription
idpathintegeryesThe unique numeric identifier of the piggyback to delete

Responses: 200 — Piggyback deleted · 404 — No site piggyback with this id. Errors follow the shared conventions.

POST /rest-api/piggyback/site/{id}/update.do

Request examples

Update a site piggyback.

ParameterInTypeRequiredDescription
idpathintegeryesThe unique numeric identifier of the piggyback to change
actionIdformintegernoFire only for this action; ignored when allActions is true
activeformbooleannoWhether the piggyback fires
allActionsformbooleannotrue to fire for every action of the campaign
codeUrlformstringnoNew tracking code (BEACON) or URL (URL type)
deliveryAttributionformstringnoWhich conversions the piggyback fires for: ALL, POST_CLICK_ONLY or POST_VIEW_ONLY Values: ALL, POST_CLICK_ONLY, POST_VIEW_ONLY.
samplingformintegernoPercentage of conversions the piggyback fires on (0-100)

Responses: 200 — Piggyback updated (success:true), or success:false with per-field ‘errors’ · 404 — No site piggyback with this id. Errors follow the shared conventions.

POST /rest-api/piggyback/site/disable.do

Request examples

Disable site piggybacks.

ParameterInTypeRequiredDescription
idformintegeryesThe unique numeric identifier of the site whose piggyback pixels should be disabled

Responses: 200 — Site piggybacks disabled successfully · 500 — Internal server error. Errors follow the shared conventions.

POST /rest-api/piggyback/site/enable.do

Request examples

Enable site piggybacks.

ParameterInTypeRequiredDescription
idformintegeryesThe unique numeric identifier of the site whose piggyback pixels should be enabled

Responses: 200 — Site piggybacks enabled successfully · 500 — Internal server error. Errors follow the shared conventions.

GET /rest-api/piggyback/site/get.do

Request examples

Get site piggybacks.

ParameterInTypeRequiredDescription
siteIdqueryintegeryesThe unique numeric identifier of the site whose piggyback tracking pixels should be retrieved

Responses: 200 — Site piggybacks retrieved successfully · 404 — Site not found. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.