Affise <-> AppsFlyer Integration

Time to read: 5 min.

topic.pngThe article covers the following topics:

To be integrated with the advertiser on Appsflyer, please sign as an Ad Integrated partner via this link:

If you currently have an integration with AppsFlyer contact their team at

To start the integration, you must send AppsFlyer both the Basic Tracking URL and the Postback URL for reporting purposes.

Basic AppsFlyer Tracking URL 

Basic AppsFlyer Tracking URL should look like:{clickid}&af_siteid={pid}&af_c_id={offer_id}

import.png No need to fill in the pid=medianame_int, that would be substituted directly by Appsflyer team.

Obligatory Tracking Link Parameters:



Request ID of each user session



ID of the Affiliate promoting the offer



ID of the offer

click__1_.pngFor more parameters to pass to the Appsflyer, please check the link.

Encryption Key 

If there is a necessity to pass the revenue indicated in Payouts in the offer to the advertiser, who uses Appsflyer, and you don’t want to reveal the actual cost value in the Appsflyer tracking URL, you can encrypt the revenue (“cost” in Appsflyer) value. In order to get in correctly you need to receive a special key from your advertiser. 

import.pngAll Payouts existent in the offer are counted for this macro (both general ones and personal ones).

Put Encryption key in 'Settings' section -> 'Appsflyer' -> 'Encrypted key':


Then you will be able to use special {max_income} macro, that can be attached to the Appsflyer parameter &af_cost_value= in the Tracking URL in the offer:


This marco is unavailable for using unless you have put the encryption key.

As a result the link looks like that:{clickid}&af_siteid={pid}&af_c_id={offer_id}&af_cost_model=CPI&af_cost_value={max_income}0&af_cost_currency=USD

click__1_.pngMore information about Encrypted cost is here: Guide on Appsflyer's side

Global Install Postback

Global install Postback URL for iOS example:{clickid}&action_id={eventtime}&custom_field1={idfa}

 Global install Postback URL for Android example:{clickid}&action_id={eventtime}&custom_field2={android_id}

import.pngRight now we support the following samples of the default Admin domain, which is used in Affise Postback URL:


In-App Event Postback

First, you need to receive the In-App event postback is to set up goals in the 'Offer edit' page. Go to the 'Offers' section - > 'Offer edit' page - > 'Payouts' tab:


click__1_.pngFind out more about how to set up a goal here.

In-App event Postback URL for iOS example:{clickid}&action_id={eventtime}&custom_field1={idfa}&goal={event-name}

In-App event Postback URL for Android example:{clickid}&action_id={eventtime}&custom_field2={android_id}&goal={event-name}

Where &goal={event-name} is the goal you need to create in the Affise system and put it into the goal value cell.

import.png Goal value '1' in the Affise system always refers to the install event. If the goal is not specified in the Postback URL, the conversion will have goal value ‘1’ by default.

Goal Value would refer to the Appsflyer Event Identifier:


article.pngYou may also find the following articles helpful:

 If you have more questions on the Integration with AppsFlyer, feel free to contact the AppsFlyer Support Team via the AppsFlyer Help Center.

Written by Anastasia Dziaruhina 

Was this article helpful?
5 out of 9 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.