Update a tracking tag
Changes a pixel's settings, such as its name or automatic matching, on platforms that allow edits.
Partial-update a pixel. Returns the re-fetched canonical tag. Whitelisted fields (at least one is required):
name(rename)enableAutomaticMatchingautomaticMatchingFieldsfirstPartyCookieStatusdataUseSetting
Meta only (platform metaads); other platforms return 501, except where noted below.
There is no DELETE: Meta has no API to delete a pixel. To stop using one, unshare it from your ad accounts (DELETE .../tracking-tags/{tagId}/shared-accounts) or disable it in Events Manager.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
Pixel id.
Body
application/jsonOptional parameters8 fields
Scopes the lookup on platforms whose tag ids live inside an ad account. Ignored elsewhere.
Meta Advanced Matching toggle (enable_automatic_matching).
Which user fields Advanced Matching may collect. Meta's terse codes: em=email, ph=phone, fn=first name, ln=last name, ge=gender, db=date of birth, ct=city, st=state, zp=zip.
empty | first_party_cookie_disabled | first_party_cookie_enabledadvertising_and_analytics | analytics_only | emptyFirst-party cookie on or off (TikTok, LinkedIn). Platform-neutral alternative to firstPartyCookieStatus.
Google Ads: turn gclid auto-tagging on or off for the ad account.
Responses
Success· the request worked
Errors· the request failed
How it behaves
Per-platform support
- Google Ads (
googleads): see below. - LinkedIn (
linkedinads): onlyfirstPartyCookieStatus(first_party_cookie_enabledorfirst_party_cookie_disabled), which sets the tag's first-party tracking. It applies to every ad account using the tag.emptyanswers 400: LinkedIn has no unset state. - TikTok: see below.
- X Ads (platform
xads): onlyfirstPartyCookieStatus(first_party_cookie_enabledorfirst_party_cookie_disabled), which sets the pixel's first-party cookie setting. X has no API to rename or delete a pixel. - Pinterest (platform
pinterestads): 501, see below. - OpenAI Ads: 501, see below.
Google Ads
The only writable tag setting is autoTagging (the account's gclid auto-tagging, without which the tag cannot attribute conversions to ad clicks).
Google rejects every write to conversion_tracking_setting for our developer token (SERVICE_ACCESS_DENIED), so the tag id and cross-account ownership stay managed in the Google Ads UI.
TikTok
name.enableAutomaticMatching+automaticMatchingFields, folded onto TikTok's five switches: em, ph, fn/ln, ct/st/zp/country, external_id. ge and db answer 400.- First-party cookies via
enableFirstPartyCookiesorfirstPartyCookieStatus(enabled or disabled).
TikTok has no pixel delete: the endpoint is absent from its API and POST /pixel/delete/ answers 404.
Pinterest
Pinterest API v5 only creates, lists and reads tags; it has no endpoint to edit a tag. Its spec lists only POST/GET on conversion_tags and GET on conversion_tags/{id}, and PATCH or PUT on conversion_tags/{id} answer 405 "Method not allowed".
Set enhanced match at creation (automaticMatchingFields), or rename a tag and change its enhanced match settings in Pinterest Ads Manager.
OpenAI Ads
Its API has no pixel update or delete route (POST/PATCH/PUT/DELETE /v1/conversions/pixels/{id} answer 405 "Invalid method"). Rename a pixel in OpenAI Ads Manager.
Get a tracking tag
Shows one pixel or measurement tag in full, including its install snippet, when it last fired and its conversion events. ### Meta Meta (platform `metaads`) returns the full tag record including the base-code `code` snippet, `lastFiredTime`, `ownerBusinessId`, `isUnavailable`, etc. Platforms other than those listed here return 501. ### OpenAI Ads OpenAI Ads (`openaiads`): `tagId` is the pixel's API id (`cds_...`) or its `pixel_id`. OpenAI documents no single-pixel read, so the tag is resolved from the pixel list. - `code`: the official `oaiq` base code plus `page_viewed`. - `events`: the conversion event settings whose source is this pixel. - `siteTagId`: the `pixel_id` the site and the Conversions API send. - `id`: what event settings reference. ### LinkedIn LinkedIn (`linkedinads`): - `code`: LinkedIn's base code. - `lastFiredTime`: the most recent callback across the tag's domains (unix seconds, null when it never fired). - `events`: the ad account's conversion rules. - `siteEvent` and `siteEventId`: set only on rules a page can fire (event-specific Insight Tag rules: not Conversions API rules, no URL match rules). - `adAccountId`: picks which ad account's rules to read. It defaults to the account that created the tag. ### Pinterest Pinterest (platform `pinterestads`) returns the tag with Pinterest's own `code` snippet and `lastFiredTime`. Without `adAccountId` Zernio finds the ad account that owns the tag (404 when no readable ad account holds it). ### TikTok Read from `/pixel/list/?pixel_id=`. `code` is TikTok's `pixel_script` and `events` the pixel events. `lastFiredTime` is not available on TikTok. Without `adAccountId` the connection's advertisers are searched. ### X Ads X Ads (platform `xads`): `tagId` is the X ad account id. An ad account without a pixel answers 400. - `siteTagId`: the pixel id. - `code`: the X Pixel base code. - `events`: the conversion events the site can fire, each with `siteEventId` = `tw-<pixel>-<event>` (also the `event_id` of the X Conversions API).
Get aggregated event stats
Shows event counts or health for a tracking tag so you can confirm it is firing, where the platform reports them. Platforms without a stats API answer 501. ### Meta Aggregated counts (`GET /{pixel_id}/stats`), rows passed through as-is. Their shape depends on the `aggregation` requested. ### OpenAI Ads The recent-events stream (`GET /conversions/events`): the latest (at most 50) events received in the last 15 minutes, one row per event (`event_type`, `api_channel`, `event_timestamp_ms`, `received_at_ms`, ...). Both sources appear in `api_channel`: - `pixel_sdk`: the on-site Pixel (including its `openai::sdk_init` load event) - `server_to_server`: Conversions API events It is a fixed window: `startTime`/`endTime` answer 400. Use it to confirm an install fires; attributed totals come from ads analytics. Accounts not enabled for the stream answer 422 `feature_not_available`. ### LinkedIn (`linkedinads`) Health rows rather than counts, since LinkedIn exposes no per-event fire counts: - One row per site domain the tag has seen (`kind: domain`, `domainName`, `lastFiredTime`, `creationTime`, `blocked`). Capped at the 100 domains that fired most recently (newest first; a tag seen on more domains drops the least recent). - One row per conversion rule (`kind: conversion_rule`, `id`, `name`, `type`, `conversionMethod`, `status`, `lastFiredTime`). Times are unix seconds. `startTime`/`endTime` are ignored. ### Pinterest (platform `pinterestads`) Rows typed by `type`: - One `tag` row (`lastFiredTime`, `status`, `enhancedMatchStatus`). - `event` rows for the conversion events Pinterest has seen on the tag. `source` is `page_visit` or `ocpm_eligible` (the latter means the event can be optimized for), with the neutral `siteEvent` where one maps. - `event_quality` rows with the ad account's Event Quality Score for tag events over the last `1d` and `14d`. This is ad-account level, not per tag; an account Pinterest cannot score yet carries `error` instead. Pinterest has no time-bounded counts, so `startTime`/`endTime` answer 400. ### TikTok Per-event counts from `/pixel/event/stats/` (`total_count`, `browser_event_total_count`, `server_event_total_count`, `attributed_count`, `preview_count`), bucketed by UTC day. Defaults to the last 7 days; at most 30 days per request. `aggregation` is not accepted. ### X Ads (platform `xads`) X has no event counts per pixel or event (only campaign-level conversion metrics). Each row is one web event tag with: - its `status` (TRACKING, UNVERIFIED, DORMANT) - `lastTrackedTime` (unix seconds, null if never seen) - `autoCreated` - for events the site can fire, `siteEventId`