Packagecom.milkmangames.nativeextensions.android
Classpublic class AdMobAdType
InheritanceAdMobAdType Inheritance Object



Public Methods
 MethodDefined By
  
getPixelSize(adType:String):Rectangle
[static] Return the pixel dimension of a given ad type for the device currently running.
AdMobAdType
Public Constants
 ConstantDefined By
  BANNER : String = BANNER
[static] Standard Banner (Phone) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.BANNER) to determine the pixel size this ad will appear.
AdMobAdType
  IAB_BANNER : String = IAB_BANNER
[static] IAB Full-Size Banner (Tablet) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.IAB_BANNER) to determine the pixel size this ad will appear.
AdMobAdType
  IAB_LEADERBOARD : String = IAB_LEADERBOARD
[static] IAB Leaderboard (Tablet) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.IAB_LEADERBOARD) to determine the pixel size this ad will appear.
AdMobAdType
  IAB_MRECT : String = IAB_MRECT
[static] IAB Medium Rectangle (Tablet) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.IAB_MRECT) to determine the pixel size this ad will appear.
AdMobAdType
Method Detail
getPixelSize()method
public static function getPixelSize(adType:String):Rectangle

Return the pixel dimension of a given ad type for the device currently running. (AdMob sizes are dependent on the DPI of the phone or tablet; for instance, BANNER may be larger (in pixels) on a phone with a 3" screen than a phone with a 5" screen.

Parameters

adType:String — The ad type to get the pixel size for (AdMobAdType.BANNNER,AdMobAdType.IAB_MRECT,AdMobAdType.IAB_BANNER, or AdMobAdType.IAB_LEADERBOARD.)

Returns
Rectangle — a Rectangle object's whose width and height properties reflect the true pixel size of the ad relative to the device dimensions.
Constant Detail
BANNERConstant
public static const BANNER:String = BANNER

Standard Banner (Phone) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.BANNER) to determine the pixel size this ad will appear.

IAB_BANNERConstant 
public static const IAB_BANNER:String = IAB_BANNER

IAB Full-Size Banner (Tablet) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.IAB_BANNER) to determine the pixel size this ad will appear.

IAB_LEADERBOARDConstant 
public static const IAB_LEADERBOARD:String = IAB_LEADERBOARD

IAB Leaderboard (Tablet) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.IAB_LEADERBOARD) to determine the pixel size this ad will appear.

IAB_MRECTConstant 
public static const IAB_MRECT:String = IAB_MRECT

IAB Medium Rectangle (Tablet) Ad Type: use AdMobAdType.getPixelSize(AdMobAdType.IAB_MRECT) to determine the pixel size this ad will appear.