Add the SDK¶
The Adobe AIR Advertiser SDK is built as an AIR Native Extension in order to work together with the Android and iOS native SDKs so that you can harness the full power of native components for a better overall experience.
To begin integrating the SDK:
- Download the latest version of the full Adobe AIR Advertiser SDK: SuperAwesomeAdvertiserSDK-1.0.4.AdobeAIR.ane .
- Right-click on your project in the Package Explorer and select Properties :
- Then go to ActionScript Build Path and then to the Native Extensions tab.
- Lastly you’ll want to add the .ane file you just downloaded by clicking on the Add ANE button.
If you follow all these steps the SDK will be installed as a Native Extension. There are however a couple of additional steps to do for either the Android or iOS build.
Setup for Android builds¶
When building your Adobe AIR app as an Android application, you’ll often want to change the associated XML file that AIR generates alongside your project to add or change different parameters to make it suitable for deploying on Android. Using this SDK is no exception, and you’ll have to add the following lines to the Android / Manifest Additions part of the xml file.
<android> <manifestAdditions><![CDATA[ <manifest android:installLocation="auto"> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.INTERNET"/> <application android:allowBackup="true"> <service android:name="tv.superawesome.lib.sanetwork.asynctask.SAAsyncTask$SAAsync" android:exported="false" android:permission="tv.superawesome.sdk.SuperAwesomeSDK"/> <receiver android:name="tv.superawesome.sdk.advertiser.SAVerifyInstall" android:exported="false" android:permission="tv.superawesome.sdk.SuperAwesomeSDK"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER"/> </intent-filter> </receiver> </application> </manifest> ]]></manifestAdditions> <containsVideo>true</containsVideo> </android>
Setup for iOS builds¶
There are no additional steps to take when it comes to the iOS build, but you must know that the native component of the SDK will only work for iOS 8.0+ builds.
Once you’ve integrated the Adobe AIR Advertiser SDK, you can access all functionality by including the following: