Detach Pixel from Campaign
Detaches one of your pixels from a campaign. Same as clearing the pixel under Ad platforms in the campaign’s Postbacks window. The campaign stops sending new events to that pixel.
Only this pixel changes: custom postbacks and other pixels of the campaign stay as they are. Detaching a pixel that is not attached is not an error.
campaign_id is a revc_… RevShare campaign id or a cplo_… CPL campaign id (the campaign behind that order).
Returns the campaign row with its new ad_pixels: the shape of revshare/campaigns for a revc_… id, of cpl/campaigns for a cplo_… id.
Errors (status: "error", HTTP 200):
404Campaign not found: unknown id or not your campaign.404Pixel not found: unknown id or not your pixel.422campaign_id is requiredorpixel_id is required.409The campaign postbacks are being changed right now, try again: someone is saving the same campaign at this moment.403Access denied: missing / unknown key, or the account is not an active partner.429Rate limit exceeded (30 writes per minute per key, see theRetry-Afterheader).503Service is temporarily unavailable: the platform did not answer in time. The action may still have been applied, checkad_pixelsof the campaign before repeating it.
pixel_id from the campaign’s ad_pixels or from the pixel list.
What changes
Only the pixel you name. Custom postbacks of the campaign and its other pixels stay as they are. The pixel itself is not changed: it stays in Tools -> Pixels and keeps working on its other campaigns. Detaching a pixel that is not attached answers success, so you can repeat the call safely. The answer is the campaign row with its newad_pixels: the shape of RevShare campaigns for a revc_… id and of CPL campaigns for a cplo_… id.
To stop a pixel on every campaign at once, archive it in Tools -> Pixels.
Errors
Authorizations
API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.
Body
Response
Success (check status; errors are also HTTP 200)