Packagecom.adobe.mediacore.timeline.advertising
Classpublic class AdBannerAsset
InheritanceAdBannerAsset Inheritance AdAsset Inheritance Object



Public Properties
 PropertyDefined By
 InheritedadClick : AdClick
[read-only]
AdAsset
  bannerData : String
[read-only] Returns html code or iframe url depending on the resourceType
AdBannerAsset
 Inheritedduration : Number
[read-only]
AdAsset
  height : int
[read-only] Returns the height of the banner
AdBannerAsset
 Inheritedid : String
[read-only]
AdAsset
 Inheritedmetadata : Metadata
[read-only]
AdAsset
 Inheritedresource : MediaResource
[read-only]
AdAsset
  resourceType : String
[read-only] Returns the banner resource type : STATIC_URL, IFRAME_URL or HTML
AdBannerAsset
  staticUrl : String
[read-only] Returns the static url for this banner if available.
AdBannerAsset
  width : int
[read-only] Returns the width of the banner
AdBannerAsset
Public Methods
 MethodDefined By
  
AdBannerAsset(id:String, duration:Number, resource:MediaResource, resourceType:String, width:int, height:int, staticUrl:String = null, adClick:AdClick = null, metadata:Metadata = null)
AdBannerAsset constructor
AdBannerAsset
  
create(id:String, duration:Number, resource:MediaResource, resourceType:String, width:int, height:int, staticUrl:String = null, adClick:AdClick = null, metadata:Metadata = null):AdBannerAsset
[static] Returns a new instance of AdBannerAsset.
AdBannerAsset
Public Constants
 ConstantDefined By
  HTML : String = html
[static] A companion banner of type html.
AdBannerAsset
  IFRAME_URL : String = iframe
[static] A companion banner with a url source for an iframe.
AdBannerAsset
  STATIC_URL : String = static
[static] A companion banner with a url to a static file, such as an image or SWF file.
AdBannerAsset
Property Detail
bannerDataproperty
bannerData:String  [read-only]

Returns html code or iframe url depending on the resourceType


Implementation
    public function get bannerData():String
heightproperty 
height:int  [read-only]

Returns the height of the banner


Implementation
    public function get height():int
resourceTypeproperty 
resourceType:String  [read-only]

Returns the banner resource type : STATIC_URL, IFRAME_URL or HTML


Implementation
    public function get resourceType():String
staticUrlproperty 
staticUrl:String  [read-only]

Returns the static url for this banner if available.


Implementation
    public function get staticUrl():String
widthproperty 
width:int  [read-only]

Returns the width of the banner


Implementation
    public function get width():int
Constructor Detail
AdBannerAsset()Constructor
public function AdBannerAsset(id:String, duration:Number, resource:MediaResource, resourceType:String, width:int, height:int, staticUrl:String = null, adClick:AdClick = null, metadata:Metadata = null)

AdBannerAsset constructor

Parameters
id:String
 
duration:Number
 
resource:MediaResource
 
resourceType:String
 
width:int
 
height:int
 
staticUrl:String (default = null)
 
adClick:AdClick (default = null)
 
metadata:Metadata (default = null)
Method Detail
create()method
public static function create(id:String, duration:Number, resource:MediaResource, resourceType:String, width:int, height:int, staticUrl:String = null, adClick:AdClick = null, metadata:Metadata = null):AdBannerAsset

Returns a new instance of AdBannerAsset.

Parameters

id:String
 
duration:Number
 
resource:MediaResource
 
resourceType:String
 
width:int
 
height:int
 
staticUrl:String (default = null)
 
adClick:AdClick (default = null)
 
metadata:Metadata (default = null)

Returns
AdBannerAsset — new instance of AdBannerAsset.
Constant Detail
HTMLConstant
public static const HTML:String = html

A companion banner of type html.

IFRAME_URLConstant 
public static const IFRAME_URL:String = iframe

A companion banner with a url source for an iframe.

STATIC_URLConstant 
public static const STATIC_URL:String = static

A companion banner with a url to a static file, such as an image or SWF file.