| Package | com.adobe.mediacore.timeline.advertising |
| Class | public final class Ad |
| Inheritance | Ad Object |
| Property | Defined By | ||
|---|---|---|---|
| companionAssets : Vector.<AdAsset> [read-only]
Companion assets associated with this ad. | Ad | ||
| duration : uint [read-only]
The declared duration of the ad in milliseconds. | Ad | ||
| id : String [read-only]
The ad identifier. | Ad | ||
| primaryAsset : AdAsset [read-only]
Primary asset of the ad. | Ad | ||
| tracker : ContentTracker [read-only]
Analytics provider for this ad. | Ad | ||
| type : String [read-only]
The ad type (linear, non-linear, etc). | Ad | ||
| Method | Defined By | ||
|---|---|---|---|
Ad(id:String, type:String, duration:uint, primaryAsset:AdAsset, companionAssets:Vector.<AdAsset>, tracker:ContentTracker = null)
Default constructor. | Ad | ||
Checks if this ad is equal with the specified one. | Ad | ||
linearFromAsset(id:String, primaryAsset:AdAsset, companionAssets:Vector.<AdAsset>, tracker:ContentTracker = null):Ad [static]
Helper method for ad creation. | Ad | ||
toString():String | Ad | ||
| companionAssets | property |
companionAssets:Vector.<AdAsset> [read-only] Companion assets associated with this ad. This method returns a copy of the companion assets in order to prevent accidental updating of the vector.
public function get companionAssets():Vector.<AdAsset>| duration | property |
duration:uint [read-only] The declared duration of the ad in milliseconds.
public function get duration():uint| id | property |
id:String [read-only] The ad identifier. This value is important for ad tracking purposes and it is set only once when it is created by the ad resolving library.
public function get id():String| primaryAsset | property |
primaryAsset:AdAsset [read-only] Primary asset of the ad.
public function get primaryAsset():AdAsset| tracker | property |
tracker:ContentTracker [read-only] Analytics provider for this ad.
public function get tracker():ContentTracker| type | property |
type:String [read-only] The ad type (linear, non-linear, etc). Ad types are defined in the AdType class and they dictate how the ad will be affecting the playback timeline.
public function get type():StringSee also
| Ad | () | Constructor |
public function Ad(id:String, type:String, duration:uint, primaryAsset:AdAsset, companionAssets:Vector.<AdAsset>, tracker:ContentTracker = null)Default constructor.
Parametersid:String — Ad unique identifier.
| |
type:String — Ad type.
| |
duration:uint — Ad duration in milliseconds.
| |
primaryAsset:AdAsset — The primary asset of the ad.
| |
companionAssets:Vector.<AdAsset> — The companion assets of the ad.
| |
tracker:ContentTracker (default = null) — Content tracker instance which will be used for tracking events associated with this ad.
|
| equals | () | method |
public function equals(otherAd:Ad):BooleanChecks if this ad is equal with the specified one.
Parameters
otherAd:Ad |
Boolean — true if the two ads are equal and false otherwise.
|
| linearFromAsset | () | method |
public static function linearFromAsset(id:String, primaryAsset:AdAsset, companionAssets:Vector.<AdAsset>, tracker:ContentTracker = null):AdHelper method for ad creation. This method will create an ad using primary asset properties as default properties for the ad.
Parameters
id:String — Ad unique identifier.
| |
primaryAsset:AdAsset — The primary asset of the ad.
| |
companionAssets:Vector.<AdAsset> — The companion assets of the ad.
| |
tracker:ContentTracker (default = null) — Content tracker instance which will be used for tracking events associated with this ad.
|
Ad — a valid Ad instance
|
| toString | () | method |
public function toString():StringReturnsString |