Version: 2.67.0

CompanionAd

THEOplayer > CompanionAd

CompanionAd interface

Represents a companion ad which is displayed near the video player.

Signature:
export interface CompanionAd

Properties

Property

Type

Description

adSlotId (optional)

string

The identifier of the element in which the companion ad should be appended, if available.

altText

string

The alternative description for the ad.

clickThrough (optional)

string

The website of the advertisement.

contentHTML

string

The content of the ad, as HTML.

height

number

The height of the ad, in pixels.

resourceURI

string

The URI of the ad content.

width

number

The width of the ad, in pixels.