List your result metrics
The metric keys your team has sent, with their label and kind, then the formulas: your own and the built-in ones (cac_percent, cost_per_sale, cost_per_qualified_lead, lead_to_sale). A new key appears as a count labelled from the key; name it, or define a formula, with PUT /v1/ads/campaign-results/metrics/{key}.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Responses
Success· the request worked
Errors· the request failed
Send events to every destination
Sends conversion events once and forwards them to every ad platform destination saved for the profile (see `POST /v1/events/destinations`), or to the `destinations` given in the request. Requires the Ads add-on. ### Forwarding - Each destination receives the events exactly as `POST /v1/ads/conversions` would send them, so the per-platform notes there (hashing, batching, `eventName` semantics, dedup on `eventId`) apply here too. - A destination saved with `eventNames` only receives events with those names. - One destination failing never blocks the others: each one reports its own result. ### Storage Zernio also stores each event for the profile's reporting. - Email, phone and `externalId` are stored only as SHA-256 hashes. - `sourceUrl` keeps only its origin, path and attribution parameters (`utm_*`, `gclid`, `fbclid`, `ttclid`, `li_fat_id`, `epik`, `rdt_cid`, `gbraid`, `wbraid`). - Events sent with `testCode` are forwarded but not stored. - Sending an event again with the same `eventId` replaces the stored one. - A stored `Purchase`, `Lead` or `QualifiedLead` tied to one of your campaigns (see `campaign` on each event) counts in `GET /v1/ads/campaign-results` and in ad rules as `sales` and `revenue`, `leads` or `qualified_leads`.
List your results per campaign
Your results summed per campaign over a date range, one entry per campaign with every metric it has, for the ad accounts your key can see. Each day counts its newest uploaded value only, plus the events sent to `POST /v1/events` that are tied to the campaign (`sales`, `revenue`, `leads`, `qualified_leads`). An event counts here up to 15 minutes after it arrives. Paginated by campaign: pass `nextCursor` back as `cursor` until it is null.