Проверить пиксель
Sends one check to the platform with the stored token, same as Check in Tools -> Pixels. The check is queued: the answer is the pixel as it is now, and health, health_error and health_checked_at change within a minute. Read the pixel list to see the outcome.
At most one check a minute per pixel: a second call inside that minute answers Checked less than a minute ago, showing the latest result.
Meta: the check is a test event, visible in Events Manager -> Test Events when the pixel has a test event code. TikTok: a check needs a test event code on the pixel; without one health stays unknown until a campaign sends its first event.
Errors (status: "error", HTTP 200):
404Pixel not found: unknown id or not your pixel.422pixel_id is required.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, read the pixel list before repeating it.
Как прочитать результат
Проверка ставится в очередь. Ответ этого запроса показывает пиксель таким, какой он сейчас; результат появляется в течение минуты. Читайте его в списке пикселей:Checked less than a minute ago, showing the latest result.
Что получает платформа
health.
Проверка до запуска рекламы
- Возьмите код в инструменте Test Events платформы и сохраните его через изменение пикселя в поле
test_event_code. - Вызовите этот метод и смотрите тестовую вкладку платформы: событие появится в течение минуты.
- До запуска рекламы уберите код запросом с
"test_event_code": "".
Ошибки
Авторизации
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.