List stored events
Lists the conversion events stored for a profile by POST /v1/events, newest first. Personal data is never
returned: hasEmail, hasPhone and hasExternalId only say whether the event carried that identifier.
Events sent with testCode are not stored, so they never appear here.
Paginate with cursor: pass the nextCursor of the previous page until it comes back null.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
1 <= value <= 20050Only events at or after this time (ISO 8601, on the event time).
date-timeOnly events before this time (ISO 8601, on the event time).
date-timeOnly events with this name, such as Purchase.
nextCursor from the previous page.
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.conversions.listEvents({ query: { profileId: 'profile_abc123', },});console.log(data);{ "events": [ { "eventId": "string", "eventName": "string", "eventTime": "2019-08-24T14:15:22Z", "receivedAt": "2019-08-24T14:15:22Z", "actionSource": "string", "value": 0, "currency": "string", "sourceUrl": "string", "utm": { "source": "string", "medium": "string", "campaign": "string", "content": "string" }, "zrn": "string", "clickIds": { "gclid": "string", "fbc": "string" }, "destinationsSent": 0, "hasEmail": true, "hasPhone": true, "hasExternalId": true, "ad": { "platform": "googleads", "customerId": "string", "campaignId": "string", "adGroupId": "string", "adSetId": "string", "adId": "string" } } ], "nextCursor": "string"}List event destinations
Lists the ad platform destinations that receive events sent to `POST /v1/events`, for one profile or every profile you can access.
Create website conversion action
Creates a Google Ads website conversion action and returns the tag snippets to install on your site. Creates a `WEBPAGE` conversion action (category `DEFAULT`) and returns it with its tag snippets, read back after creation since Google never returns them on the create response itself. Invalidates the cached list `GET` on this resource would otherwise keep serving. Google-only; other platforms return `501`. Requires the Ads add-on.