# ExoClick

> Set up ExoClick as a traffic source, send it your conversions, and pull your spend automatically.

This page shows you how to set up ExoClick in Proferex: track its clicks, send it your conversions, and pull your ad spend automatically.

---

## Apply the template

Go to **Tracker → Traffic Sources**, click **Create Traffic Source**, then **Templates → ExoClick**. The template fills in everything below. You only need to change the parts marked **You fill in**.

If you set it up by hand instead, copy the tokens exactly as written, including the curly brackets.

---

## Variable mappings

![The ExoClick template's variable mappings, with External ID, Cost (CPC), and the v1 Campaign ID row outlined](/images/docs/exoclick-mappings.jpg "The ExoClick template, filled in")

| Variable | URL parameter | ExoClick token |
|---|---|---|
| External ID | `externalid` | `{conversions_tracking}` |
| Cost (CPC) | `cost` | `{actual_cost}` |
| v1 Campaign ID | `campid` | `{campaign_id}` |
| v2 Creative ID | `creaid` | `{variation_id}` |
| v3 Site Name | `sitenm` | `{src_hostname}` |
| v4 Site ID | `siteid` | `{site_id}` |
| v5 Zone ID | `zoneid` | `{zone_id}` |
| v6 Category ID | `catid` | `{category_id}` |
| v7 Country | `ctry` | `{country}` |
| v8 Keyword | `key` | `{keyword}` |
| v9 Ad Format | `format` | `{format}` |
| v10 Language | `lang` | `{language}` |

`{conversions_tracking}` is ExoClick's click ID. It can be very long, and Proferex keeps all of it.

One thing we learned the hard way: ExoClick's `{tags}` token pastes page text into your URL exactly as it appears, and on some video pages that text ends the URL early. Anything after it never arrives. We've dropped `{tags}` from the template (v9 is now the ad format) and the campaign URL Proferex gives you puts `externalid` and `cost` at the front. If you set up ExoClick before October 2026, your source may still map v9 to `{tags}` and your campaign URLs may still carry it. Re-copy the URL from the campaign dialog, or at least move the click ID and cost to the front, so the click ID can't get cut off.

![A campaign URL with externalid and cost right after the question mark, before the other ExoClick parameters](/images/docs/exoclick-campaign-url.jpg "Click ID and cost come first in the campaign URL")

---

## Postback URL and cost sync

The template sets **Traffic Source Adapter** to **ExoClick** and fills in this postback address:

```text
https://s.magsrv.com/tag.php?goal=YOUR_GOAL_ID&tag={externalid}
```

![The ExoClick adapter selected, the postback URL with YOUR_GOAL_ID, the empty API Key field, API Timezone and Traffic source currency set to Auto, and Campaign ID Token set to v1](/images/docs/exoclick-config.jpg "Replace the goal ID and paste your API token")

**You fill in:**

- In the **Postback URL**, replace `YOUR_GOAL_ID` with the ID of the conversion goal you created in ExoClick.
- In **API Key**, paste an ExoClick API token. In ExoClick, click your email in the top right, choose **API Tokens**, and click **New API Token**. You can also save without it and add it later; cost sync starts once the token is in.

The rest is set for you:

- **API Timezone** is set to **Auto** and detected from your ExoClick account when you save with a token. Change it only if you know your account reports in a different timezone.
- **Traffic source currency** is also set to **Auto** and read from your ExoClick account when you save with a token. Change it only if the detected currency is wrong. It is used for your ad spend and for the payout in conversion postbacks.
- **Campaign ID Token** is `v1`, the row that carries `{campaign_id}`. Keep it that way, or cost sync cannot match spend to your clicks.


**Don't want cost sync?** Set **Traffic Source Adapter** to **None (Manual Cost Tracking)** and leave the API token empty. Everything else keeps working, and each click's cost comes from the **Cost (CPC)** row instead. See [Costs](/docs/tracker/costs/index.md).

---

## Control the campaign from Proferex

Once cost sync is set up, click **API** at the top of an ExoClick campaign's page in Proferex.

![The Traffic Source API Integration window for ExoClick, with cost sync active, the CPM model, the traffic source campaign ID 5127734, and the Campaign Overview button](/images/docs/api-exoclick.jpg "Open the campaign in ExoClick")

Under **Traffic Source Campaign ID**, pick the ExoClick campaign, then click **Campaign Overview** to open it in ExoClick. Proferex can't pause or resume ExoClick campaigns, so do that in ExoClick.

To find the zones to block, group the campaign by **V5**, the zone ID. See [Campaign Reports](/docs/reports/campaign-reports/index.md#block-a-losing-spot-in-one-campaign).

---

## Next step

Save the traffic source, then create a campaign with it. See [Campaigns](/docs/tracker/campaigns/index.md).
