AppsFlyer
AIRSHIP MAINTAINED INTEGRATION
This integration is maintained by Airship. Please contact Airship for support.AppsFlyer is a popular mobile attribution platform. With the bi-directional integration between Airship and AppsFlyer, you can import attribution data from AppsFlyer to segment and personalize messages, as well as send events back to AppsFlyer via Airship Real-Time Data StreamingA service that delivers engagement events in real time via the Data Streaming API or an Airship partner integration. (RTDS).
Airship ingests media source, campaign, campaign ID, attributed Ad ID, or attributed adgroup AppsFlyer parameters as Airship attributes and then sends RTDS events back to AppsFlyer. This enables AppsFlyer to analyze Airship-driven message response.
AppsFlyer Integration Requirements
- Accounts
- AppsFlyer
- Airship — Must include both:
- Messaging
- Real-Time Data Streaming — Required for source/outbound integration only
- Airship project
- The Airship SDK must use the same user identity as the AppsFlyer SDK.
Configuring the Inbound Integration
In Airship:
- Go to Settings » Project Configuration and click Manage for Partner Integrations.
- Select AppsFlyer.
- Click Configure for the inbound integration and follow the onscreen instructions to:
- Create AttributesMetadata that you can use for audience segmentation. Attributes differ from tags in that when evaluating users with attributes, Airship uses operators, e.g., equals, less than/greater than, contains, before/after, to determine whether or not to target a user. Supported attribute types are TEXT, NUMBER, and DATE. and an authentication token. AppsFlyer uses the token to communicate with your project in Airship.
- Add Airship as an integrated partner in AppsFlyer.
Configuring the Outbound Integration
First, configure receiving data from Airship. In the AppsFlyer dashboard:
- In the main menu, select Integrated Partners under Configuration.
- In the search field, enter Airship RTDS and click Airship RTDS.
- Go to the Integration tab and select Activate partner.
- Go to the Attribution link tab and set up the attributes link parameters.
Next, configure which Airship events to send to AppsFlyer. In Airship:
- Go to Settings » Project Configuration and click Manage for Real-Time Data Streaming.
- Under Real-Time Data Streaming, select AppsFlyer. Previously configured integrations are listed under Enabled Integrations.
- Follow the onscreen instructions to configure the integration.
Android Example for Associating User IDs
import ...
// AppsFlyer Imports
import android.util.Log;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerConversionListener;
public class SampleApplication extends Application {
private static final String AF_DEV_KEY = "YOUR_DEV_KEY_FROM_APP_SETTINGS";
@Override
public void onCreate() {
super.onCreate();
...
AppsFlyerLib.getInstance().init(AF_DEV_KEY, conversionListener, this);
AppsFlyerLib.getInstance().start(this);
...
// Associating the channelID with AppsFlyerLib
HashMap<String, Object> customData = new HashMap<String,Object>();
String channelId = UAirship.shared().getChannel().getId();
customData.put("android_channel", channelId);
AppsFlyerLib.getInstance().setAdditionalData(customData);
}
}
Email Deep Linking with AppsFlyer
You can use AppsFlyer OneLink to create deep links that direct a user from emails to your app or other content. OneLink handles deep links intelligently, so that your links open in your app when possible, but will resolve to a web browser if your users open links on a desktop computer or do not have your app installed. OneLink can be configured to work with Airship emails.
Complete these requirements in any order:
Configure a link tracking domain in Airship — A working click tracking domain is a prerequisite for this integration. Please contact Airship Support if you do not know your domain address or have not yet set one up.
Host your Apple App Site Association (AASA) file — On the same domain you have configured for click tracking you will need to host the AASA file that will be responsible for opening the app in a deep link scenario. For help with generating or configuring an AASA file contact AppsFlyer support.
Configure the AppsFlyer SDK (iOS V6.0.4 and Android V6.0.0 or later only) — You will need the AppsFlyer SDK in your application to handle deep links. See: AppsFlyer getting started guide .
Categories