AmazonAds Native Extension for Adobe Air. Use Amazon Mobile Ads in Adobe Air (Android Only)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

AmazonAds Native Extension for Adobe Air

This AmazonAds ANE add supprt to using Amazon Mobile Ads with Adobe Air. Supports Android only.

##About Amazon Mobile Ads?

##Install the library

Add the AmazonAds-ANE library to your project.

In Flash Professional CS6:

  1. Create a new mobile project
  2. Choose File > PublishSettings...
  3. Select the wrench icon next to 'Script' for 'ActionScriptSettings'
  4. Select the Library Path tab.
  5. Click 'Browse for Native Extension(ANE) File' and select the Mopub.ane file.

In Flash Builder 4.6:

  1. Goto Project Properties
  2. Select Native Extensions under Actionscript Build Path
  3. Choose Add ANE... and navigate to the Mopub.ane file
  4. Select Actionscript Build Packaging > Google Android or Apple IOS
  5. Select the Native Extensions tab, and click the 'Package' check box next to the extension

In Flash Professional CS5.5 or Lower:

  1. Select File>PublishSettings>Flash>ActionScript 3.0 Settings
  2. Select External Library Path
  3. Click Browseto SWC File
  4. Select the Mopub.swc

In Flash Builder 4.5:

  1. Goto Project Properties
  2. Select Action Script Build Path
  3. Select Add Swc
  4. Navigate to Mopub.swc and choose External Library type

In FlashDevelop:

  1. Copy the Mopub.swc file to your project folder.
  2. In the explorer panel, right click the .swc and select Add to Library.
  3. Right-click the swc file in the explorer, choose Options, and select External Library

##Add the Actionscript

Import the library

  import digicrafts.extensions.AmazonAds;

Set the appKey. You can display test ads by supply true to second parameter.


Show a banner AD. Supply an unique name for each banner. You need it for removing the ad.


Remove the Ad


Show a Interstitial Ad


Remove the Interstitial Ad


##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="" 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

Flippy Day

Recycle Rangers

Diamond Speedy


The software is developed by Digicrafts.


This project is licensed under the BSD license