Webhook Events

Ad set updated event

An ad set was edited through Zernio (source: "zernio"), or outside Zernio and detected by the sync (source: "platform").

When it fires

Fires after the platform and Zernio both accepted the edit. Outside edits arrive up to one sync interval late, and only to the user whose sync saw them.

Deduplication

Events are not deduplicated, so every edit is announced. Use the event id to drop repeats.

Payload notes

changes lists the edited fields: name, status (the ad set's own on/off switch), budget, bid, schedule, targeting or settings. Ignore unknown values. It never carries old or new values, so read the ad set.

What the sync detects

From the sync, changes covers only name and status. Status is not detected on Reddit.

When it does not fire

History loaded when an account connects is never announced. Budget and targeting edits made through PUT /v1/ads/{adId} arrive as ad.updated.

postWebhookad_set.updated

Payload

idstring required

Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.

testboolean

Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.

event'ad_set.updated' required
changesstring[] required

Fields edited by this request. status is the ad set's own on/off switch. Ignore values you do not know.

source'zernio' | 'platform' required

Where the edit was made. zernio for edits through Zernio, platform for edits the sync detected outside Zernio.

timestampstring date-time required

UTC time at which Zernio generated this event.

Example payload

{
  "profiles": [
    {
      "externalId": "tenant_42"
    }
  ],
  "account": {
    "platform": "tiktokads"
  }
}

Response

Webhook received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.