Skip to main content
POST
Update a pixel
Same as Edit in Tools -> Pixels. Send pixel_id and only what changes.

How fields are read

The platform of a pixel cannot be changed: create a new pixel instead.

What happens next

Every campaign the pixel is attached to picks the change up at once, you do not attach it again. A check is sent to the platform after each save, see Check Pixel.

Typical calls

To stop sending renewals, send the mapping without new_renewal. How renewals are counted is described in Ad Platform Pixels.

Errors

Authorizations

Authorization
string
header
required

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

application/json
pixel_id
string<uuid>
required

Pixel id in OnlyTraffic: pixel_id from the pixel list. Not the Pixel ID of the ad platform.

platform_pixel_id
string

The pixel on the platform side: Pixel ID (Dataset ID) from Meta Events Manager or Pixel Code from TikTok Events Manager.

Maximum string length: 64
access_token
string

Server access token of the pixel: the Conversions API token from Meta Events Manager or the Events API token from TikTok Events Manager. Write-only: stored encrypted, never returned by any endpoint and not kept in request logs.

Maximum string length: 1000
pixel_name
string

Your label for the pixel.

Maximum string length: 100
test_event_code
string

Test event code from the platform's Test Events tool. While it is set every event of the pixel carries it and shows up in Test Events. Clear it before the ads go live.

Maximum string length: 32
event_source_url
string

Meta only, optional: your own landing page address, sent as the event source. Never an onlyfans.com address: Meta drops those events. Leave it out to send events without a page address.

Maximum string length: 255
events
object[]

The whole event mapping: every event on the list is sent as its platform_event, an event left out is switched off. List new_renewal to send renewals, with the same platform event as new_transaction or with another one to tell them apart.

Response

200 - application/json

Success (check status; errors are also HTTP 200)

status
enum<string>
Available options:
success
message
string
data
object

One of your ad-platform pixels.