This AmazonAds ANE add supprt to using Amazon Mobile Ads with Adobe Air. Supports Android only.
##About Amazon Mobile Ads?
https://developer.amazon.com/appsandservices/apis/earn/mobile-ads
##Install the library
Add the AmazonAds-ANE library to your project.
In Flash Professional CS6:
- Create a new mobile project
- Choose File > PublishSettings...
- Select the wrench icon next to 'Script' for 'ActionScriptSettings'
- Select the Library Path tab.
- Click 'Browse for Native Extension(ANE) File' and select the Mopub.ane file.
In Flash Builder 4.6:
- Goto Project Properties
- Select Native Extensions under Actionscript Build Path
- Choose Add ANE... and navigate to the Mopub.ane file
- Select Actionscript Build Packaging > Google Android or Apple IOS
- Select the Native Extensions tab, and click the 'Package' check box next to the extension
In Flash Professional CS5.5 or Lower:
- Select File>PublishSettings>Flash>ActionScript 3.0 Settings
- Select External Library Path
- Click Browseto SWC File
- Select the Mopub.swc
In Flash Builder 4.5:
- Goto Project Properties
- Select Action Script Build Path
- Select Add Swc
- Navigate to Mopub.swc and choose External Library type
In FlashDevelop:
- Copy the Mopub.swc file to your project folder.
- In the explorer panel, right click the .swc and select Add to Library.
- Right-click the swc file in the explorer, choose Options, and select External Library
##Add the Actionscript
Import the library
import digicrafts.extensions.AmazonAds;
import digicrafts.extensions.events.AmazonAdsEvent;
Set the appKey. You can display test ads by supply true to second parameter.
AmazonAds.setAppKey("AMAZON_APP_ID",false);
Show a banner AD. Supply an unique name for each banner. You need it for removing the ad.
AmazonAds.showAdView('banner_name');
Remove the Ad
AmazonAds.removeAdView('banner_name');
Show a Interstitial Ad
AmazonAds.showInterstitial();
Remove the Interstitial Ad
AmazonAds.removeInterstitial();
##Setup for Android
Update Your Application Descriptor
You'll need to be using the AIR 3.1 SDK or higher, include the extension in your Application Descriptor XML, and update the Android Manifest Additions with some settings.
Add the following settings in tag.
<activity android:name="com.amazon.device.ads.AdActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
Add the following permission if you want the ad target location.
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
##Game we made using this ANE
##Developer
The software is developed by Digicrafts.
http://www.facebook.com/DigicraftsComponents
http://www.digicrafts.com.hk/components
http://www.html5components.com
##License
This project is licensed under the BSD license