> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Conversions

Send purchases, carts, searches and AdRoll's own events to the AdRoll Conversions and Events API from your backend or the Zernio site tag.

`POST /v1/events` sends your conversions to the AdRoll Conversions and Events API. The destination is the connection's Advertisable EID.

## Send a conversion event

Name the AdRoll account and its Advertisable EID. Send the AdRoll click id or cookie of the visit, the visitor's IP address and the page URL:

```bash
curl -X POST "https://zernio.com/api/v1/events" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "66a1f0c2a4b9d3e8f1a2b3c4",
    "destinations": [{ "accountId": "66b2e19d8c3f5a7e9d0b1c2d", "destinationId": "JNMPRDBQL5CVBAIXDLO6JA" }],
    "events": [{
      "eventName": "Purchase",
      "eventTime": '"$(date +%s)"',
      "eventId": "order_12345",
      "value": 25.00,
      "currency": "USD",
      "sourceUrl": "https://shop.example.com/checkout/thank-you",
      "user": {
        "email": "ana@example.com",
        "ipAddress": "203.0.113.7",
        "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
        "clickIds": { "adct": "ADCT_FROM_THE_LANDING_URL", "adroll_fpc": "ebb883e7afb5d00573288f188cc75eaa-a_1730154992" }
      }
    }]
  }'
```

To send every conversion to AdRoll without naming it each time, create a [forwarding rule](/conversions/create-forwarding-rule) for the account instead.

## Event names

AdRoll takes no custom event names. Zernio maps the standard names that have an AdRoll event:

| `eventName` | AdRoll event | Also needs |
|---|---|---|
| `PageView` | `pageView` | |
| `Search` | `productSearch` | |
| `AddToCart` | `addToCart` | `items` with `id` |
| `Purchase` | `purchase` | |

AdRoll's own names go as is: `pageView`, `homeView`, `productSearch`, `addToCart`, `purchase`, and for AdRoll ABM `highValuePage`, `gatedContent`, `demoRequest`, `signupPlan`, `signupTrial`, `contactSales`, `liveChat` and `formFill`.

Any other name is refused. Rename it in the forwarding rule, for example `Lead` to `formFill`, or to `purchase` when a lead is your main conversion.

## Match keys

Each event needs one of these, plus `user.ipAddress` and `sourceUrl`:

- `user.clickIds.adct`: the `adct` parameter AdRoll adds to the landing URL of an ad click. AdRoll maps a click for 30 days.
- `user.clickIds.adroll_fpc`: the AdRoll Pixel's first-party cookie, `__adroll_fpc`.

The Zernio site tag captures both on your site. An event from your payments or CRM reaches AdRoll only when it carries the visitor's click id or cookie, IP address and page URL.

`user.email` is sent as `email_sha256` (SHA-256 of the trimmed, lowercased address): AdRoll keeps it but does not match on it yet.

## What else is sent

- The event time as `timestamp`, Unix seconds.
- `value` and `currency` as `conversion_value` and `currency`, only together.
- `items` as `event_attributes.products`, each with `product_id`, `quantity` and `price`.
- On `purchase`, `platformData.order_id` as `event_attributes.order_id`, or the `eventId` when there is none.
- On `productSearch`, `platformData.search_string` as `event_attributes.keywords`.
- `userAgent` as `user_agent`.

## No dedup with the AdRoll Pixel

AdRoll has no event id to dedup on. It asks you not to send the same event from both the AdRoll Pixel and the API, since both would count.

Forward the events your pixel does not send, such as server-side purchases, or remove that event from the pixel.

## From the Zernio tag

A forwarding rule sends AdRoll your site's conversions from visitors with its click id or cookie. Product views, carts and checkouts from the tag are not forwarded, since the AdRoll Pixel already sees them.

## Consent

- Without `adUserData` consent, nothing is sent: AdRoll's click id and cookie name the visitor.
- On profiles created since 22 November 2026, an event from the EEA, UK or Switzerland is sent only with `adUserData` granted and no ad signal denied. See [Consent](/products/server-side-tracking/consent).

## Test mode

An event sent with `testCode` goes to AdRoll with `dry_run=true`: AdRoll validates and logs it without touching audiences or attribution.

## How it behaves

- One request per event, five at a time.
- A `429` is retried. A `5xx` or no answer is not, since AdRoll has no dedup and the event may have landed.
- A `401` or `403` on every event means AdRoll refused the token: the send fails with `reconnect_required`.
- AdRoll cannot take a refund or a change back, so a retracted event stays counted there.
- To use an event for targeting or optimization, create a User Event audience for it in AdRoll.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `AdRoll needs its click id or first-party cookie …` | No `adct` or `adroll_fpc` | Send events from visitors who came from AdRoll, or with the `__adroll_fpc` cookie. |
| `AdRoll needs the visitor's IP address …` | No `ipAddress` | Send the visitor's IP address. |
| `AdRoll needs the full URL …` | No `sourceUrl` | Send the page the event happened on. |
| `AdRoll takes PageView, Search, …` | The event name has no AdRoll event | Rename it in a forwarding rule. |
| `AdRoll needs the products on AddToCart …` | No `items` with `id` | Send the cart items. |
| `AdRoll 400: …` | AdRoll refused the payload | Fix the field AdRoll names. |
| `destinationId must be this connection's AdRoll Advertisable EID` | Another id was sent | Use the id from `GET /v1/ads/conversions/destinations`. |
| `401` with `reconnect_required` | AdRoll refused the token, or the connection has none | Ask your AdRoll account manager for a new token and [connect again](/platforms/adroll/connect). |

## Related

- [Send events](/conversions/send-events)
- [Create a forwarding rule](/conversions/create-forwarding-rule)
- [Consent](/products/server-side-tracking/consent)
- [Limits and errors](/platforms/adroll/reference)