
{cost} macro. If you buy A4G’s pop traffic, use the A4G DSP Pop template instead. See A4G DSP Pop.
At a glance
How it works
1
A4G sends the click
A visitor clicks your ad. A4G opens your ClickFlare campaign URL and fills in its macros: the click ID in
clickid, the cost in cost, plus the placement, category, ad exchange, app, creative, device and ad.2
ClickFlare stores the A4G click ID
ClickFlare saves the value of
clickid as the visit’s External ID, records the cost, and redirects the visitor to your lander or offer.3
The conversion reaches ClickFlare
Your affiliate network or store posts the conversion back to ClickFlare, matched on the ClickFlare click ID.
4
ClickFlare posts it back to A4G
ClickFlare fires the A4G postback, replacing
{external_id} with the stored A4G click ID. A4G matches it to the original click.The mirror to keep straight: in the campaign URL you write ClickFlare’s parameter (
clickid) and A4G’s macro ({clickid}). The template does this for you. In the postback URL you write A4G’s parameter (clickid) and ClickFlare’s token ({external_id}). The parameter has the same name on both sides. What changes is who fills it in.Before you start
- Set up your own tracking domain. Run the campaign and the postback on your own custom domain. Shared domains get flagged by networks and blocked by browsers. See Custom Domains.
- Have an offer ready in ClickFlare, and its affiliate network set up to post conversions back to ClickFlare. See Creating an Offer and Adding an Affiliate Network.
- Have an A4G DSP advertiser account. You log in at
platform.a4g.com. - Decide which conversion A4G should receive. The postback has no event parameter, so A4G sees every postback as the same kind of conversion. If your funnel has several steps (lead, then sale), pick the one A4G should optimize to. See Choosing the event.
Step 1 – Create the campaign and the A4G DSP traffic source
- Go to Campaigns and click New.
- In Traffic Source, open the dropdown and click + New Traffic Source.
- Type
a4gin the search box and select the A4G DSP template. Don’t pick A4G DSP Pop unless you buy pop traffic. - Enter a Name, for example
A4G DSP. - Leave Cost currency on USD unless your A4G account is billed in another currency.

placement_id, app_id and exchange_name are the ones you will use most. They tell you which apps, placements and exchanges convert, so you can block or bid up sources in A4G. ifa is a per-device ID. It is useful for spotting repeat devices, less so for grouping.
To pass more A4G data, click Add Parameter, give it a name and parameter, and enter the A4G macro as the TS Token. ClickFlare assigns the next free tracking field. Only use macros your A4G account offers. A macro A4G doesn’t know reaches ClickFlare as literal text.
Step 2 – Set up the postback
The postback is what sends conversions to A4G. It lives on the traffic source, so every campaign that uses this A4G DSP traffic source sends conversions the same way. A4G’s postback is one shared URL. It carries no account ID, username or campaign ID. A4G finds the click, and your campaign, from the click ID alone. There is no postback to generate in your A4G account.Add it to the traffic source in ClickFlare
- Back in the New Traffic Source form, scroll to Passing conversion info to traffic source.
- Turn on Traffic source postback URL. The template’s postback appears:

{external_id}) in A4G’s clickid parameter. t=postback tells A4G’s server the request is a conversion. Keep both as they are.
- Change
http://tohttps://. Thehttpaddress answers with a permanent redirect tohttps. Sending tohttpsdirectly avoids relying on the redirect. The result:
- In the dropdown on the left, choose the ClickFlare event that should fire the postback. Keep Conversions to send every conversion. If your final action is a custom conversion (for example
purchase), choose that instead. - Click Save. You are back in the campaign editor with the A4G DSP traffic source selected.
{external_id} with A4G’s {clickid}. {clickid} is A4G’s macro for the campaign URL. ClickFlare doesn’t know it and would send it as literal text.
To learn what each postback token does, see How to Configure a Traffic Source S2S Postback URL.
Step 3 – Finish the campaign and copy its URL
- Name the campaign.
- Set the Cost Model to Not Tracked, so ClickFlare uses the cost A4G passes. See Cost.
- Choose Redirect or Direct tracking. Redirect is the usual choice for A4G DSP traffic.
- Click Next and, on Destination, add your lander (optional) and your offer.
- Save, open Tracking, select your own tracking domain and copy the campaign URL.
clickid={clickid} and placement_id={placement_id}.
If you use a lander, its call-to-action must link to the ClickFlare click URL, not to the offer directly. Otherwise the visit reaches the offer without a ClickFlare click ID, and the conversion cannot be traced back to A4G.
See Creating a Campaign in ClickFlare.
Step 4 – Create the campaign in A4G DSP
In A4G DSP, the ClickFlare URL goes on the creative. A campaign holds creatives, and each creative has its own click URL.- Upload your creatives. Open the Campaigns tab and choose Creative library. In Manage library, create a folder, then upload your files to it. A4G asks for a reference URL during the upload. Paste the ClickFlare campaign URL there and click Start upload.
- Create the campaign. Open the Campaigns tab, choose Campaigns and click Add campaign. Enter a name, choose the campaign type and the traffic type, and click Save.
- Create a creative in the campaign. Set its name, media type, bid and frequency cap, and select the creative you uploaded.
- Paste the ClickFlare campaign URL into the Click URL field. Enter your page’s domain and click Save changes.
{...} macro when the ad is clicked. Repeat the Click URL step for every creative in the campaign. A creative without the ClickFlare URL sends untracked traffic.
Step 5 – Test the integration
A4G has no public tool for checking a postback. Test end to end, with your own click.- Launch the campaign with a small budget, or wait for the first clicks.
- In ClickFlare, open the campaign’s report and check the External ID and tracking field columns. A real A4G click ID in External ID, and values such as an exchange name and placement ID, show the macros are being replaced. Text like
{clickid}means the URL was edited or pasted somewhere A4G doesn’t process macros. - Complete the offer yourself, or wait for the first conversion.
- In ClickFlare, go to Logs → Postback Status and filter by the campaign. A successful request to
conversion.bidpro.io, with a real click ID afterclickid=, confirms ClickFlare sent it. - In A4G, check that the conversion appears in the campaign’s statistics. If ClickFlare sent the postback and A4G shows nothing, send your A4G account manager the click ID from the log.
Choosing the event
A4G’s postback has no event parameter. Every postback it receives counts as the same conversion, and A4G optimizes on all of them. Send it one event, the one you want more of.Sending only your final conversion
Sending only your final conversion
Create a custom conversion for each step of your funnel, for example
lead and purchase. On the A4G DSP traffic source, set the postback’s event dropdown to the final step, purchase. Earlier steps still show in ClickFlare. They just don’t reach A4G.To send a postback only for some conversions, for example only those above a certain payout, use Event filter under the postback to add conditions.Why not send every step
Why not send every step
Clicking + Another postback URL and sending a second event to the same
conversion.bidpro.io URL makes A4G count two conversions for one visitor. Its conversion count and its CPA both go wrong. Add a second postback only if A4G confirms its postback can tell events apart, and with the parameter it gives you.Cost
The template passes cost per click. Thecost row sends A4G’s {cost} macro, and ClickFlare records it as the visit’s cost.
On the campaign, set the Cost Model to Not Tracked so ClickFlare uses the cost passed in the URL.
If you bid on CPM,
{cost} may not match what you pay per click. After launch, compare ClickFlare’s Cost column with your spend in A4G. If it doesn’t match, switch the Cost Model to CPC and enter your average cost per click as the cost value. On a CPM bid, that is your spend divided by your clicks, not the CPM divided by 1,000, because one impression is not one visit on display traffic.Delayed revenue
If you run search arbitrage (RSOC or AFD) behind A4G, the feed reports revenue hours or days after the click. A4G’s postback doesn’t carry revenue, but the timing still matters if you send A4G a conversion only once revenue arrives. See Sending Delayed Revenue to Traffic Sources.Troubleshooting
Conversions show in ClickFlare but not in A4G
Conversions show in ClickFlare but not in A4G
- Traffic source postback URL is off on the A4G DSP traffic source.
- Disable sending postbacks to traffic source is on in the campaign.
- The postback is mapped to a different event than the one the conversion logged. Check Logs → Event Logs to see which event was recorded.
- The postback uses A4G’s
{clickid}instead of ClickFlare’s{external_id}. ClickFlare doesn’t know{clickid}and sends it as literal text. - Check Logs → Postback Status: a failed request shows the status code A4G returned.
The postback goes out with an empty click ID
The postback goes out with an empty click ID
- The Click URL on the A4G creative is missing
clickid={clickid}, or the macro was edited. Copy the URL from ClickFlare again. - The
externalIdrow was removed from the traffic source. - The conversion came from a visit that didn’t start on an A4G click, for example a test click you opened yourself.
A4G shows conversions with no revenue
A4G shows conversions with no revenue
Expected. The template’s postback sends the click ID only. Ask your A4G account manager for the payout parameter and add it with
{payout}, as described in Step 2.Placement, app or exchange columns are empty
Placement, app or exchange columns are empty
The macros were not replaced, usually because the URL was pasted somewhere A4G doesn’t process macros, or was edited. Some macros are empty by nature:
{app_id} and {ifa} only have values on in-app traffic. See Traffic Source Tokens Arriving Empty.FREQUENTLY ASKED QUESTIONS
Q1: Which template do I pick, A4G DSP or A4G DSP Pop?A1: Pick A4G DSP for display and in-app campaigns. Pick A4G DSP Pop for pop traffic. The two are identical except for the cost row: A4G DSP reads
{cost} into a cost parameter, A4G DSP Pop reads {cpv} into a cpv parameter. See A4G DSP Pop.
Q2: Can I use the same A4G DSP traffic source for all my A4G campaigns?A2: Yes. The postback is set once on the traffic source and every campaign using it sends conversions the same way. A4G’s postback has no account ID, so the same URL works for every campaign in your account.
Q3: Why is the parameter called clickid on both sides?
A3: A4G uses the same name for receiving the click ID and for reading it back. In the campaign URL, A4G fills clickid with its {clickid} macro. In the postback, ClickFlare fills clickid with its {external_id} token. Change neither.
Q4: Should I use Redirect or Direct tracking with A4G DSP?A4: Redirect is the usual choice and works with every A4G creative. Use Direct only if A4G must see your lander’s domain as the destination. See Direct Campaign Tracking.
Q5: Where do I put the URL if I have several creatives?A5: In the Click URL of each one. A4G sets the click URL per creative, not per campaign. Every creative should carry the same ClickFlare campaign URL.
Related
A4G DSP Pop
The template for A4G’s pop traffic.
Traffic source postbacks
Every token you can use in a postback.
Cost models
How CPC, CPA and RevShare costs are calculated.
Conversions not showing
The general checklist when postbacks don’t arrive.