Packagecom.distriqt.extension.adverts
Classpublic class AdSize
InheritanceAdSize Inheritance Object



Public Properties
 PropertyDefined By
  height : int
AdSize
  heightInPixels : int
[read-only]
AdSize
  type : String
[read-only]
AdSize
  width : int
AdSize
  widthInPixels : int
[read-only]
AdSize
Public Methods
 MethodDefined By
  
AdSize(width:int = 320, height:int = 50)
AdSize
  
fromObject(data:Object):AdSize
[static]
AdSize
Public Constants
 ConstantDefined By
  AUTO_HEIGHT : int = -2
[static] Constant that will cause the height of the ad to scale based on the height of the device in the current orientation.
AdSize
  BANNER : AdSize
[static] Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).
AdSize
  FLUID : AdSize
[static] A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.
AdSize
  FULL_BANNER : AdSize
[static] Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).
AdSize
  FULL_WIDTH : int = -1
[static] Constant that will cause the width of the ad to match the width of the device in the current orientation.
AdSize
  LARGE_BANNER : AdSize
[static] Large banner ad size (320x100 density-independent pixels).
AdSize
  LEADERBOARD : AdSize
[static] Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).
AdSize
  MEDIUM_RECTANGLE : AdSize
[static] Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).
AdSize
  SEARCH : AdSize
[static] A special variant of FLUID to be set on SearchAdView when loading a DynamicHeightSearchAdRequest.
AdSize
  SMART_BANNER : AdSize
Deprecated: Use adaptive banner sizing
[static] A dynamically sized banner that is full-width and auto-height.
AdSize
  WIDE_SKYSCRAPER : AdSize
[static] IAB wide skyscraper ad size (160x600 density-independent pixels).
AdSize
Property Detail
heightproperty
public var height:int

heightInPixelsproperty 
heightInPixels:int  [read-only]


Implementation
    public function get heightInPixels():int
typeproperty 
type:String  [read-only]


Implementation
    public function get type():String
widthproperty 
public var width:int

widthInPixelsproperty 
widthInPixels:int  [read-only]


Implementation
    public function get widthInPixels():int
Constructor Detail
AdSize()Constructor
public function AdSize(width:int = 320, height:int = 50)



Parameters
width:int (default = 320)
 
height:int (default = 50)
Method Detail
fromObject()method
public static function fromObject(data:Object):AdSize

Parameters

data:Object

Returns
AdSize
Constant Detail
AUTO_HEIGHTConstant
public static const AUTO_HEIGHT:int = -2

Constant that will cause the height of the ad to scale based on the height of the device in the current orientation. An AUTO_HEIGHT ad determines its height during initialization of the AdView and never changes after that.

BANNERConstant 
public static const BANNER:AdSize

Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).

FLUIDConstant 
public static const FLUID:AdSize

A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.

FULL_BANNERConstant 
public static const FULL_BANNER:AdSize

Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).

FULL_WIDTHConstant 
public static const FULL_WIDTH:int = -1

Constant that will cause the width of the ad to match the width of the device in the current orientation. A FULL_WIDTH ad determines its width during initialization of the AdView and never changes after that.

LARGE_BANNERConstant 
public static const LARGE_BANNER:AdSize

Large banner ad size (320x100 density-independent pixels).

LEADERBOARDConstant 
public static const LEADERBOARD:AdSize

Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).

MEDIUM_RECTANGLEConstant 
public static const MEDIUM_RECTANGLE:AdSize

Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).

SEARCHConstant 
public static const SEARCH:AdSize

A special variant of FLUID to be set on SearchAdView when loading a DynamicHeightSearchAdRequest.

SMART_BANNERConstant 
public static const SMART_BANNER:AdSize
Deprecated: Use adaptive banner sizing

A dynamically sized banner that is full-width and auto-height.

WIDE_SKYSCRAPERConstant 
public static const WIDE_SKYSCRAPER:AdSize

IAB wide skyscraper ad size (160x600 density-independent pixels). This size is currently not supported by the Google Mobile Ads network; this is intended for mediation ad networks only.