Admob ANE is a native extension that allows the use of Google’s Admob advertisements on Android or iOS. The developer has control to choose the ad size, its position and the moment when it should be displayed. The extension has a single API for Android and iOS.

The extension provides a set of ad event, such as when an ad was received by the device. The extension also has some helper methods, allowing the developer to read the ad size, the screen size or the device MAC address.

Sample

var admob:Admob=Admob.getInstance();
admob.setKeys("a152834c8723912");

// simple banner usage
admob.showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);

//  interstitial ad (full screen ad)
if (admob.isInterstitialReady()) {
     admob.showInterstitial();
} else {
    admob.cacheInterstitial();
}

admob.addEventListener(AdmobEvent.onBannerReceive,onAdReceived);

protected function onAdReceived(event:AdmobEvent):void {
    if(event.type==AdmobEvent.onBannerReceive){
        trace(event.data.width,event.data.height);
    }
}
Air Native Extension, Android, iOS . URL.