Defines basic properties available for every ad type.

interface Ad {
    clickThroughUrl?: string;
    data?: AdData;
    height: number;
    id?: string;
    isLinear: boolean;
    mediaFileUrl?: string;
    width: number;
}

Properties

clickThroughUrl?: string

The url the user should be redirected to when clicking the ad.

data?: AdData

Holds various additional AdData.

height: number

The height of the ad.

id?: string

Identifier for the ad. This might be autogenerated.

isLinear: boolean

Determines whether an ad is linear, i.e. playback of main content needs to be paused for the ad.

mediaFileUrl?: string

The corresponding media file url for the ad.

width: number

The width of the ad.