Skip to content
admob ane for flash air iOS app and actionscript android app.include banner and Interstitial native Advertising.this Admob ANE suport admob 1 and admob 2,based on firebase sdk
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
admob_ane_last fix pack fail Dec 20, 2019
images format Jun 8, 2016
changelog.txt update admob sdk,tested with air 33,update demo code Dec 6, 2019 update admob sdk,tested with air 33,update demo code Dec 6, 2019

Admob ANE for Flash Air

  1. Admob ANE Description
  2. Admob ANE For Air Features
  3. Quick Start
    1.Init Admob ANE
    2.Add Admob Banner in adobe Air App
    3.Remove Banner
    4.Admob Native Express Ads
    5.Admob ANE Show Interstitial
    6.Custom Admob Banner Ad Sizes
    7.Set Admob Target Param
    8.Ad Events
    9.Admob Rewarded Video
    10.IOS permission config permission config
    12.Screen size function
    13.ANE ID
  4. change log
  5. Screenshots
  6. Links
  7. License

Admob ANE Description

Admob Air Native Extention(Admob ANE) provides a way to integrate admob ads in Air ios and Air Android Game and app. You can use it for Air iOS and Android App with the same actionscript code,not need any change ,not need java or oc.You not need Admob ANE for ios and Admob ANE for android Separate version any more with this Ane.

The Google Mobile Ads SDK is the latest generation in Google mobile advertising featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables Air mobile app developers to maximize their monetization in native mobile apps.

Admob ANE For Air Features

  • Support IOS and Android in one ane with the same api
  • Support banner(All Banner Sizes)
  • Support Intersitial
  • Support Rewarded Video
  • Support landscape and portrait and autoOrient
  • Support AdRequest targeting methods,such as children target,test mode
  • Support Air SDK 32 and Air 33
  • Support IOS 8 to ios 13
  • Very simple API
  • Support android x64,x86,arm,and 32,64 bit support

Quick Start

1.Init Admob ANE

Add Admob ane to air project build path , add the follow code in the script file

    import so.cuo.platform.admob.*;
    Admob.getInstance().initAdmobSDK(new ExtraParameter());

2.Add Admob Banner in adobe Air App

Here is the minimal code needed to show admob banner.

    Admob.getInstance().showBanner("your banner ID ",AdmobSize.BANNER_320x50,AdmobPosition.BOTTOM_CENTER);

The AdmobPosition class specifies where to place the banner. AdmobSize specifies witch size banner to show

3.Remove Banner

By default, banners are visible. To hide a banner,


4.Admob ANE Show Interstitial

How to integrate Interstitial into Air ios app or flex android app? Here is the minimal code to create an interstitial.

    Admob.getInstance().cacheInterstitial("your Interstitial ID "); 

interstitials need to be loaded before shown. show at an appropriate stopping point in your app, check that the interstitail is ready before showing it:

    if (Admob.getInstance().isInterstitialReady()) {

5.Custom Admob Banner Ad Sizes

In addition to constants on AdSize, you can also create a custom size:

    //Create a 320x250 banner.
    AdSize adSize = new AdSize(320, 250);

6.Set Admob Target Param

set Admob target param such as test Ads and children app If you want to test the ads or the your app with children target,you can set with admob ANE easy

       extraParam=new ExtraParameter();
	extraParam.isChildApp=true;//if is tagForChildDirectedTreatment,set true
        extraParam.nonPersonalizedAds=true;//if want to load non Personalized ads set true
	Admob.getInstance().showBanner("Your banner ID",AdmobSize.BANNER_320x50,AdmobPosition.BOTTOM_CENTER,80,extraParam);

7.Ad Events

Both Banner and Interstitial contain the many ad events that you can register for.
Here we'll demonstrate setting ad events on a interstitial,and show interstitial when load success:

    Admob.getInstance().addEventListener(AdmobEvent.onInterstitialReceive, onAdEvent);
	private function onAdEvent(event:AdmobEvent):void
		if (event.type == AdmobEvent.onBannerReceive)
		if (event.type == AdmobEvent.onInterstitialReceive)

9.Admob Rewarded Video

Video api is similar with Interstitial

Here we'll demonstrate setting ad events on a video,and show video when load success:

    Admob.getInstance().addEventListener(AdmobEvent.onVideoReceive, onVideoEvent);
	private function onVideoEvent(event:AdmobEvent):void
		if (event.type == AdmobEvent.onVideoReceive)
			trace("load video success,you can show video now");

10.IOS min version config

MinimumOSVersion is required for ios ,admob reqired ios 8 and later;GADApplicationIdentifier is required by admob 7.1 and later


simple example

    </iPhone> permission config

Meta Config is required from admob 17 Please replace ca-app-pub-3940256099942544~3347511713 with your admob ID

			<manifest android:installLocation="auto">
					<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
					<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
					<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
					<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
					<uses-permission android:name="" />
						<meta-data android:name="" android:value="@integer/google_play_services_version" />
					      <activity android:name="" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent"/>
						<receiver android:name="" android:enabled="true" android:exported="false" ></receiver>
					       <receiver android:name="" android:enabled="true" android:exported="true" android:permission="android.permission.INSTALL_PACKAGES" >
							    <action android:name="" />

					        <service android:name="" android:enabled="true" android:exported="false" />
					        <service android:name="" android:enabled="true" android:exported="false" android:permission="android.permission.BIND_JOB_SERVICE" />
					        <receiver android:name="" android:enabled="true" android:exported="false" ></receiver>

					        <service android:name="" android:enabled="true" android:exported="false" />
						  <meta-data android:name="" android:value="ca-app-pub-3940256099942544~3347511713"/>


12.Screen size function

this will get screen size ,unit is dp




change log 20190925

1.update admob sdk ios 13 android x64,arm,x86
4. support air 32 and air 33




This Admob ANE was published since Sep, 2012, and has been downloaded more than 100,000 times. Now it's the No. 1 monetization ANE plugin for Flash Air community,More people use, making the api more friendly,the plugin more stable.Thank you for feedback questions and provide advice, thank you for the support and donations.


version with google firebase analysis


Apache 2.0 License

You can’t perform that action at this time.