Interface VerizonMediaAd

Represents a Verizon Media ad.

interface VerizonMediaAd {
    apiFramework: undefined | string;
    companions: readonly VerizonMediaAd[];
    creative: string;
    duration: number;
    endTime: number;
    events: Record<string, string[]>;
    extensions: readonly object[];
    freeWheelParameters: Record<string, string>;
    height: number;
    mimeType: string;
    startTime: number;
    width: number;
    addEventListener<TType>(type, listener): void;
    removeEventListener<TType>(type, listener): void;
}

Hierarchy (view full)

Properties

apiFramework: undefined | string

The API framework, if any.

Remarks


- If the value is 'VPAID', then the ad is a VPAID ad.
- Otherwise the ad is an Uplynk CMS asset.

companions: readonly VerizonMediaAd[]

List of companion ads of the ad.

creative: string

The identifier of the creative.

Remarks


- Either a VPAID URL if the API framework is 'VPAID'.
- Otherwise an asset ID from the Uplynk CMS.

duration: number

The duration of the ad, in seconds.

endTime: number

The end time of the ad, in seconds.

events: Record<string, string[]>

A record of all VAST 3.0 tracking events for this ad. Each entry contains all related tracking URLs.

extensions: readonly object[]

List of VAST extensions returned by the ad server.

freeWheelParameters: Record<string, string>

Record of FreeWheel-defined creative parameters. Each entry contains the parameter name together with the associated value.

height: number

The height of the ad, in pixels.

Remarks


- Returns 0 when this is not a companion.

mimeType: string

The creative's mime type.

Remarks


- Either 'application/javascript' if the API framework is 'VPAID'.
- Otherwise 'uplynk/m3u8'.

startTime: number

The start time of the ad, in seconds.

width: number

The width of the ad, in pixels.

Remarks


- Returns 0 when this is not a companion.

Methods