Adobe Air

Appnext Android Tracking SDK Plugin for Adobe Air

The Tracking SDK tracks your app installs, when you promote your apps with Appnext.

You can also use the tracking SDK to send Appnext post-install analytics on your users. This will allow you to measure the quality of the users you’ve acquired through Appnext, analyze the effectiveness of your ad campaigns, and improve ad performance.

Appnext Account & ID

1. Register for an Appnext Account
You must first create an account with Appnext to be able to use this ad unit’s features.
If you do not have an Appnext account, copy the following URL to the browser: https://www.appnext.com and sign up

2. Get a Unique ID.
To get started, add a new App via the Appnext Self-Service Platform, then copy the Placement ID, which can be found in your account at:
Apps -> Settings Icon-> Settings & Placements -> Placement ID (make sure to copy the Placement ID for both Android and iOS apps).

Unique ID
A unique ID called a “Placement ID” is required for all inbound requests. A Placement ID is a 32- character string generated by Appnext for every registered app.

Change log

📘

Download (Latest update: 10/05/18)

Download the zip file from here

📘

10/05/2018

  • Updated version (GDPR ready) version

12/07/2017

  • Updated version in AAR file

07/08/2016

  • New SDK version

22/02/2016

  • New SDK version
  • New integration

Tracking SDK Integration

Integrating Appnext Tracking SDK to Your Android Game

The process of integrating Appnext is fairly straightforward, and does not require advanced programming.

The required steps for using Appnext in your applications are outlined below:

  • Add the appnextTrackingExtension.ane to your project
  • Edit your -app.xml
  • Add tracking code

Step 1: Add the Appnext Tracking SDK to Your Project

For Flash Builder:
Right-click on your project > “Properties”. “ActionScript Build Path" > "Native Extensions" tab > add ANE.
Find the appnextTrackingExtension.ane file and click OK.

For Intellij IDEA:
“File” -> “Project Structure” -> “Modules”. Select your app module -> “Dependencies” -> “Add Dependency” -> “New Library”. Find the appnextTrackingExtension.ane file and click OK.

Step 2: Edit the -app.xml File

Open the -app.xml, scroll down to the android entry and insert

<extensions>
  <extensionID>com.appnext.tracking</extensionID>
</extensions>

right before android entry.

Inside android entry find manifestAdditions entry and insert the following code to it:

<uses-permission android:name="android.permission.INTERNET"/>
	<application android:enabled="true">
	   <receiver android:name="com.appnext.appnextsdk.ReferralReceiver" android:exported="true">
 	      <intent-filter>
	           <action android:name="com.android.vending.INSTALL_REFERRER"/>
	      </intent-filter>
	   </receiver>
</application>

An example of the changes to your xml:

<extensions>
        <extensionID>com.appnext.ads</extensionID>
</extensions>
<android>
 <manifestAdditions>
 <![CDATA[
 <manifest android:installLocation="auto">
   <uses-permission android:name="android.permission.INTERNET"/>
   <application android:enabled="true">
     <receiver android:name="com.appnext.appnextsdk.ReferralReceiver" android:exported="true">
       <intent-filter>
         <action android:name="com.android.vending.INSTALL_REFERRER"/>
       </intent-filter>
     </receiver>
   </application>
 </manifest>
 ]]>
</manifestAdditions>
</android>

Permissions Explanation
android.permission.INTERNET - Used to get the ads information.

Step 3: import references

import com.appnext.tracking.AppnextTrack;

Step 4: Track Install

AppnextTrack.track();

Step 5: Add Post- installs events (Optional)

In order to measure the quality of your acquired users, you can pass Appnext up to 5 Post-Install events from your app. (In-app purchases, engagement and retention events,...).
Post-install events data will be displayed in the Appnext platform next to each campaign in the Manage Campaigns screen and next to each publisher app in the campaign’s detailed reporting screen.

Add Appnext post-installs events using this code:

AppnextTrack.postInstall(context, "action");

Change "action" field with the action name you want for your post installs

Integration Support
Should you have any problems integrating the product, log a ticket with us by emailing [email protected].