OverviewProductsPlatformsAPI ReferenceResources
Pixels & Tracking Tags

Delete a conversion event

DELETEhttps://zernio.com/api/v1/accounts/{accountId}/tracking-tags/{tagId}/events/{eventId}

Removes a conversion event from a tracking tag, or archives or disables it on platforms that have no hard delete.

Platforms without a hard delete archive or disable it instead; state in the response says which (deleted, archived, disabled).

OpenAI Ads answers 501: there is no delete or archive route for event settings (DELETE /v1/conversions/event_settings/{id} and POST .../{id}/archive answer 404 "Invalid URL"). Archive the event in OpenAI Ads Manager.

LinkedIn (linkedinads): LinkedIn has no delete for conversion rules (not in the conversion-tracking API, and DELETE /rest/conversions/{id} has no route), so the rule is disabled (enabled: false) and state is disabled. Re-enable it with enabled: true.

Meta: archived. Meta's delete archives the custom conversion (it stays readable with status: archived) and there is no hard delete; deleting an archived one is a no-op.

Google Ads (googleads): removes the conversion action (state archived). Google keeps it with status REMOVED and its history; PATCH with enabled: true restores it. Deleting an already archived action succeeds without a call to Google.

Pinterest (platform pinterestads): stops Pinterest tracking the event name (state: disabled); Pinterest keeps the event's history.

TikTok Ads answers 501: TikTok's /pixel/event/delete/ answers OK but leaves the event on the pixel, so nothing is deleted. Delete the event in TikTok Events Manager.

X Ads (platform xads): deletes the web event tag for good. Events X auto-created with the pixel cannot be deleted (400). X keeps the event's own website tag id on the account (it has no delete for website tags), left without a conversion event.

PlatformsMetaGoogleTikTokLinkedInPinterestXOpenAI

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired
tagIdstringRequired
eventIdstringRequired

Event id (TrackingTagEvent.id).

Query parameters

Optional
adAccountIdstring

Scopes the lookup on platforms whose tag ids live inside an ad account.

Responses

Success· the request worked

Errors· the request failed

Update a conversion event

Changes a conversion event's settings, such as its name or default value, where the platform allows edits. Partial update; at least one field. A field the platform does not store answers 400. OpenAI Ads answers 501: OpenAI documents only list and create for event settings, and `POST`/`PATCH`/`PUT /v1/conversions/event_settings/{id}` answer 404 "Invalid URL". Create a new event instead. LinkedIn (`linkedinads`): partial update of the conversion rule; same fields as create. Pass `adAccountId` when the rule lives in another ad account than the one that created the tag. Meta: only `name` and `defaultValue` can change (Meta's custom conversion update takes nothing else); `type`, `siteEvent` and `urlContains` answer 400, create a new event instead. Google Ads (`googleads`): same fields as create, on the account's WEBPAGE actions (others answer 404). `enabled: false` archives the action (same as DELETE) and `enabled: true` restores an archived one. Pinterest (platform `pinterestads`): remaps the event to another `type` or `siteEvent`. Pinterest identifies the event by its name, so `name` cannot change (400): create the new name and delete the old one. TikTok: `name`, `defaultValue` and `currency` (USD, JPY or INR); the type cannot change (delete and recreate). X Ads (platform `xads`): the same fields as create. Events X auto-created with the pixel cannot be changed (400).

List accounts it is shared with

Lists the other ad accounts a pixel is shared with. Meta (`metaads`) and LinkedIn (`linkedinads`); other platforms return 501. LinkedIn (`linkedinads`): the ad accounts this connection can see that hold access to the Insight Tag; the role (`FULL` or `USE_ONLY`) is appended to `name`. LinkedIn exposes permissions per ad account only, so accounts the connection cannot see are not listed. TikTok (`tiktokads`): the advertisers linked to the pixel in its Business Center (`/bc/pixel/link/get/`); a pixel outside Business Center answers 400.

DELETE/v1/accounts/{accountId}/tracking-tags/{tagId}/events/{eventId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.trackingtags.deleteTrackingTagEvent({  path: {    accountId: 'account_abc123',    tagId: 'tag_abc123',    eventId: 'event_abc123',  },});console.log(data);
{  "platform": "string",  "eventId": "string",  "state": "deleted"}
OpenAPI specification
Was this page helpful?