Interface NonLinearAd

Represents a non-linear ad in the VAST specification.

interface NonLinearAd {
    adBreak: AdBreak;
    adSystem: undefined | string;
    altText: undefined | string;
    clickThrough: undefined | string;
    companions: CompanionAd[];
    contentHTML: undefined | string;
    creativeId: undefined | string;
    duration?: number;
    height: undefined | number;
    id: undefined | string;
    integration?: string;
    readyState?: AdReadyState;
    resourceURI?: string;
    skipOffset: undefined | number;
    type: string;
    universalAdIds: UniversalAdId[];
    width: undefined | number;
}

Hierarchy (view full)

  • Ad
    • NonLinearAd

Properties

adBreak: AdBreak

The ad break which the ad is part of.

Remarks


- Available for VAST-ads.

adSystem: undefined | string

The source ad server information included in the ad response.

Remarks


- Available when the Ad.readyState is 'ready'.

altText: undefined | string

The alternative description for the ad.

Remarks


- Available when the Ad.readyState is 'ready'.

clickThrough: undefined | string

The website of the ad.

Remarks


- Available when the Ad.readyState is 'ready'.

companions: CompanionAd[]

List of companions which can be displayed outside the player.

Remarks


- Available when the Ad.readyState is 'ready'.
- Only supported for 'theo' and 'google-dai'.

contentHTML: undefined | string

The HTML-string with the content of the ad.

Remarks


- Available when the Ad.readyState is 'ready'.

creativeId: undefined | string

The identifier of the selected creative for the ad.

Remarks


- Available when the Ad.readyState is 'ready'.

duration?: number

The duration of the ad, in seconds.

Remarks


- Available when the Ad.readyState is 'ready'.
- Only available for LinearAd.

height: undefined | number

The height of the ad.

Remarks


- Available when the Ad.readyState is 'ready'.

id: undefined | string

The identifier of the creative.

Remarks


- Available when the Ad.readyState is 'ready'.

integration?: string

The integration of the ad, represented by a value from the following list:
- 'theo'
- 'google-ima'
- 'google-dai'
- 'freewheel'
- 'mediatailor'

Default Value

'theo'

readyState?: AdReadyState

The ready state of the ad.

resourceURI?: string

The URI of the ad content.

Remarks


- Available when the Ad.readyState is 'ready'.

skipOffset: undefined | number

Offset after which the ad break may be skipped, in seconds.

Remarks


- Available when the Ad.readyState is 'ready'.
- If the offset is -1, the ad is unskippable.
- If the offset is 0, the ad is immediately skippable.
- Otherwise it must be a positive number indicating the offset.

type: string

The type of the ad, represented by a value from the following list:
- 'linear'
- 'nonlinear'

universalAdIds: UniversalAdId[]

The list of universal ad ID information of the selected creative for the ad.

Remarks


- Only supported for 'theo' and 'google-ima'.

width: undefined | number

The width of the ad, in pixels.

Remarks


- Available when the Ad.readyState is 'ready'.

Generated using TypeDoc