If you need to send traffic to AppsFlyer, it is important to be clear about which parameters need to be sent to AppsFlyer so that it is later able to notify Aftrad of both install events and custom events.
How to configure the offer URL in Aftrad
Here you have a couple of examples of offer URL's for iOS and Android with the most commonly used parameters:
Offer URL for iOS
https://app.appsflyer.com/com.appsflyer.app?
pid=appsflyer_partner_int
&af_siteid=unique_affiliate_id
&c=appsflyer_offer_name
&af_click_lookback=7d
&clickid={click_id}
&af_sub_siteid={aggregate_id}
&af_ua={declared_user_agent}
&af_ip={declared_user_ip}
&af_lang={declared_user_language}
&idfa={idfa}
&platform=ios
Offer URL for Android
https://app.appsflyer.com/com.appsflyer.app?
pid=appsflyer_partner_int
&af_siteid=unique_affiliate_id
&c=appsflyer_offer_name
&af_click_lookback=7d
&clickid={click_id}
&af_sub_siteid={aggregate_id}
&af_ua={declared_user_agent}
&af_ip={declared_user_ip}
&af_lang={declared_user_language}
&advertising_id={gaid}
&platform=android
Aftrad macro name | Aftrad macro identifier | Appsflyer parameter | Description | AppsFlyer documentation |
N/A | N/A | pid | Uniquely identifies an AppsFlyer integrated partner | |
N/A | N/A | c | Campaign name | |
N/A | N/A | af_siteid | Unique identifier of the publisher serving the ad | |
N/A | N/A | af_click_lookback | Attribution lookback window | |
Internal click ID | {click_id} | clickid | Unique click ID | |
Aggregated click ID | {aggregated_click_id} | N/A | There is not a defined field in AppsFlyer for this, so that you must decid which AppsFlyer parameter use. In the example we will use
af_sub_siteid |
|
GAID | {gaid} | advertising_id | Google Advertising ID | |
IDFA | {idfa} | idfa | IDFA | |
Declared user agent | {declared_user_agent} | af_ua | User agent | |
Declared user IP | {declared_user_ip} | af_ip | User IP |
How to configure the postback URL in AppsFlyer
Normal postback
Go to integration management and click on "Default postback"
Set up the "Install postback URL" and "In-app event postback URL". In both cases, put the same URL:
http://example.aftrad-event.com/api/v1/events
Map the parameters to use in the postback:
And at the bottom of the page you can see the postback templates, where AppsFlyer will send the postbacks:
Advanced privacy postback
Go to integration management and click on "Advance privacy."
Set up the "Install postback URL" and "In-app event postback URL". In both cases, put the same URL:
http://example.aftrad-event.com/api/v1/events
Map the parameters to use in the postback:
At the bottom of the page, you can see the postback templates, where AppsFlyer will send the postbacks: