Trackers and API

Everything a media buyer needs to track Foliovert traffic in their own tracker: macros, conversion postbacks with goals, and an API for stats, costs, bids and placement lists.

Early access · Updated

On this page
  1. Landing-page macros
  2. Conversion postback
  3. Tracker settings
  4. API v1
  5. What counts

Landing-page macros

Paste your tracker’s campaign link as the landing URL and add these macros as parameters. Foliovert fills them in at the click, or at the visit for direct links and popunders. Both spellings work, for example {clickid} and {click_id}.

MacroValue
{clickid}Unique click ID. Send it back in the postback.
{zoneid} · {siteid}Placement and site, for blacklists and whitelists
{campaignid} · {creativeid} · {format}Your campaign, creative and format
{country} · {region} · {isp} · {language}Where the reader is, from their network
{os} · {browser} · {device}Their device
{cost} · {bid}Price of this event in USD, and your bid
{timestamp}Unix seconds at the click

Conversion postback

Have your tracker call this URL when a conversion happens:

https://[serving-domain]/s/pb?clickid={your-tracker's-click-id}&token=[campaign-token]&goal={goal}&payout={payout}

  • The token is a secret per campaign, shown on the campaign’s tracking page. A wrong token is refused.
  • Each goal (install, registration, deposit…) is recorded once per click. A CPA campaign pays at most once per click: for the goal you choose, or for the first conversion when you don’t choose one.
  • The payout you report is shown in your stats. It never changes what Foliovert charges.
  • Conversions count up to 90 days after the click. The default window is 30 days.

Tracker settings

TrackerClick IDPostback click ID token
Voluum{clickid} as external ID{externalid}
Keitaro{clickid} as external_id{external_id}
RedTrack{clickid} as clickid{ref_id}
BeMob{clickid} as externalId{externalId}
Binom{clickid} as external_id{externalid}

Map {cost} to your tracker’s cost parameter so cost per click or visit is tracked automatically.

API v1

Create a key in your account and send it as Authorization: Bearer <key>. The limit is 60 requests a minute. Dates are UTC, up to 93 days per request.

  • GET /api/v1/stats?from&to&group=day|campaign|zone|country|creative: impressions, viewable impressions, clicks, conversions, invalid traffic, spend or earnings, CTR, eCPM.
  • GET /api/v1/costs: spend by day, campaign and zone, for automatic cost sync.
  • POST /api/v1/campaigns/:id/pause and /resume.
  • POST /api/v1/campaigns/:id/bid: change a bid.
  • POST /api/v1/campaigns/:id/zones: replace a campaign’s zone blacklist and whitelist.
  • GET /api/v1/zones: a publisher’s zones and their codes.

What counts

  • Direct links and popunders count a visit when the reader arrives through Foliovert’s redirect.
  • Display formats count a viewable impression when at least 50% of the ad is on screen for one second in a visible tab.
  • Invalid traffic is never billed: bots, data centers, automation, wrong domains, abusive rates, instant clicks, hidden tabs and country switches. Your stats show each exclusion with its reason.