|Class||public class AdMob|
|api : AdMobApi|
[static] [read-only] Access to the Admob API
[static] Call this method if you wish to dispose all current Ad types.
[static] This is the first method you should call when using the Admob ANE.
|AD_TYPE_BANNER : String = banner|
|AD_TYPE_INTERSTITIAL : String = interstitial|
|AD_TYPE_REWARDED_VIDEO : String = rewardedVideo|
|ANDROID_SDK_VERSION : String = 18.3.0|
|ERROR_CODE_INTERNAL_ERROR : int = 0|
[static] Something happened internally; for instance, an invalid response was received from the ad server.
|ERROR_CODE_INVALID_REQUEST : int = 1|
[static] The ad request was invalid; for instance, the ad unit ID was incorrect.
|ERROR_CODE_NETWORK_ERROR : int = 2|
[static] The ad request was unsuccessful due to network connectivity.
|ERROR_CODE_NO_FILL : int = 3|
[static] The ad request was successful, but no ad was returned due to lack of ad inventory.
|EXTENSION_ID : String = com.myflashlab.air.extensions.admob|
|IOS_SDK_VERSION : String = 7.55.1|
|VERSION : String = 5.10.0|
Access to the Admob API
public static function get api():AdMobApi
public static function dispose():void
Call this method if you wish to dispose all current Ad types. Alternatively you can call each Ad type's dispose method to speceficly dispose it.
public static function init($stage:Stage, $applicationCode:String = null):AdMob
This is the first method you should call when using the Admob ANE. You only need to call this method only once.
IMPORTANT: When initializing the ANE, you are required to pass in the
flash.display.Stage into the ANE, but you should be careful when you are doing this. When your
app starts on iOS platform, the AIR Stage will need a couple of seconds before it can reach its final
dimension. So if you are initializing the ANE too soon on iOS, it's very probable that you can't correctly
control the x, y position of banner ads. All you have to do is to wait a few seconds from the launch time
of your app and then initialize the Admob ANE.
public static const AD_TYPE_BANNER:String = banner
public static const AD_TYPE_INTERSTITIAL:String = interstitial
public static const AD_TYPE_REWARDED_VIDEO:String = rewardedVideo
public static const ANDROID_SDK_VERSION:String = 18.3.0
public static const ERROR_CODE_INTERNAL_ERROR:int = 0
Something happened internally; for instance, an invalid response was received from the ad server.
public static const ERROR_CODE_INVALID_REQUEST:int = 1
The ad request was invalid; for instance, the ad unit ID was incorrect.
public static const ERROR_CODE_NETWORK_ERROR:int = 2
The ad request was unsuccessful due to network connectivity.
public static const ERROR_CODE_NO_FILL:int = 3
The ad request was successful, but no ad was returned due to lack of ad inventory.
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.admob
public static const IOS_SDK_VERSION:String = 7.55.1
public static const VERSION:String = 5.10.0