Add the SDK¶
The Adobe AIR Publisher 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, such as video based on AVFoundation / VideoView technology, proper WebViews and a better fullscreen experience.
To begin integrating the SDK:
1) Download the latest version of the Adobe AIR Publisher SDK: SuperAwesomeSDK-6.1.5.AdobeAIR.full.ane . This will contain everything you need in order to load and display banner, interstitial and video ads.
- 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"> <activity android:name="tv.superawesome.sdk.publisher.SAInterstitialAd" android:label="SAInterstitialAd" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="keyboardHidden|orientation|screenSize"></activity> <activity android:name="tv.superawesome.sdk.publisher.SAVideoAd" android:label="SAVideoAd" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="keyboardHidden|orientation|screenSize"></activity> <activity android:name="tv.superawesome.lib.sabumperpage.SABumperPage" android:label="SABumperPage" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@android:style/Theme.Holo.Dialog.NoActionBar" android:excludeFromRecents="true"/> <service android:name="tv.superawesome.lib.sanetwork.asynctask.SAAsyncTask$SAAsync" android:exported="false" android:permission="tv.superawesome.sdk.SuperAwesomeSDK"/> </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 Publisher SDK, you can access all functionality by including following: