Перейти к основному содержанию
POST
Update a pixel
То же, что Edit в Tools -> Pixels. Передайте pixel_id и только то, что меняется.

Как читаются поля

Платформу пикселя изменить нельзя: создайте новый пиксель.

Что происходит дальше

Все кампании, к которым привязан пиксель, получают изменение сразу, привязывать его заново не нужно. После каждого сохранения на платформу уходит проверка, см. проверку пикселя.

Типовые запросы

Чтобы перестать отправлять продления, передайте маппинг без new_renewal. Как считаются продления, описано в статье Пиксели рекламных платформ.

Ошибки

Авторизации

Authorization
string
header
обязательно

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.

Тело

application/json
pixel_id
string<uuid>
обязательно

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.

Ответ

200 - application/json

Success (check status; errors are also HTTP 200)

status
enum<string>
Доступные опции:
success
message
string
data
object

One of your ad-platform pixels.