# Adsterra tracking tokens and postback URL

> Every Adsterra tracking token, the click ID, the cost macro and the S2S conversion postback, ready to copy into any tracker.

HTML version: https://www.proferex.com/tracking-tokens/adsterra

Adsterra sells pop, push, native and display ads. (Source: https://adsterra.com/)

## Click ID

Macro: `##SUB_ID_SHORT(action)##`. Pass it as `externalid` and send it back in the postback.

## Cost per visit

Macro: `##COST_CPC##`, passed as `cost`.

## Tracking tokens

| What it tracks | Parameter | Macro |
|---|---|---|
| Campaign ID | `campaign_id` | `##CAMPAIGN_ID##` |
| Banner ID | `banner_id` | `##BANNER_ID##` |
| Placement ID | `placement_id` | `##PLACEMENT_ID##` |
| Site Zone ID | `zone_id` | `##ZONE_ID##` |
| Publisher ID | `publisher_id` | `##PUBLISHER_ID##` |
| Landing ID | `landing_id` | `##LANDING_ID##` |
| Campaign Name | `campaign_name` | `##CAMPAIGN_NAME##` |

## Example tracking link

```
https://track.yourdomain.com/your-campaign?externalid=##SUB_ID_SHORT(action)##&cost=##COST_CPC##&campaign_id=##CAMPAIGN_ID##&banner_id=##BANNER_ID##&placement_id=##PLACEMENT_ID##&zone_id=##ZONE_ID##&publisher_id=##PUBLISHER_ID##&landing_id=##LANDING_ID##&campaign_name=##CAMPAIGN_NAME##
```

## Conversion postback

```
https://www.pbterra.com/name/YOUR_USERNAME/at?subid_short={externalid}&atpay={payout}
```

`{externalid}` is the click ID; `{payout}` is the conversion value.
Replace `YOUR_USERNAME` with your Adsterra account values.

Where to find it in Adsterra: Replace YOUR_USERNAME with your Adsterra advertiser username (case-sensitive); for a non-USD account ask Adsterra support for the /code/CURRENCY/ form of the postback.

## FAQ

### What ad formats does Adsterra sell?

Adsterra sells pop, push, native and display ads. Every format uses the same tracking tokens and postback.

### What is the Adsterra click ID macro?

It's ##SUB_ID_SHORT(action)##. Add it to your tracking link, and your tracker sends it back to Adsterra in the postback when the visitor converts.

### Does Adsterra pass the cost of each visit?

Yes, in ##COST_CPC##. Add it to your link and your tracker can show profit without importing spend.

### What is the Adsterra postback URL?

https://www.pbterra.com/name/YOUR_USERNAME/at?subid_short={externalid}&atpay={payout}. Replace YOUR_USERNAME with the values from your Adsterra account. Replace YOUR_USERNAME with your Adsterra advertiser username (case-sensitive); for a non-USD account ask Adsterra support for the /code/CURRENCY/ form of the postback.

### How do I track Adsterra in Proferex?

In Traffic Sources, click New and pick Adsterra from Templates. The click ID, tokens and postback are filled in for you. Then create a campaign and copy its link into Adsterra.

## Set it up in Proferex

In Traffic Sources, click New and pick Adsterra from Templates: the click ID, tokens and postback are filled in. Then create a campaign and copy its link into Adsterra.

All traffic sources: https://www.proferex.com/tracking-tokens/index.md
