THEOplayer Web SDK
    Preparing search index...

    Interface UplynkAd

    Represents an Uplynk ad.

    interface UplynkAd {
        apiFramework: undefined | string;
        companions: readonly UplynkAd[];
        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 extends keyof UplynkAdEventMap>(
            type: TType | readonly TType[],
            listener: EventListener<UplynkAdEventMap[TType]>,
        ): void;
        removeEventListener<TType extends keyof UplynkAdEventMap>(
            type: TType | readonly TType[],
            listener: EventListener<UplynkAdEventMap[TType]>,
        ): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    apiFramework: undefined | string

    The API framework, if any.


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

    companions: readonly UplynkAd[]

    List of companion ads of the ad.

    creative: string

    The identifier of the creative.


    - 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.


    - Returns 0 when this is not a companion.

    mimeType: string

    The creative's mime type.


    - 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.


    - Returns 0 when this is not a companion.

    Methods