THEOplayer > CompanionAd
Represents a companion ad which is displayed near the video player.
Signature:
export interface CompanionAd
Property |
Type |
Description |
---|---|---|
adSlotId (optional) |
|
The identifier of the element in which the companion ad should be appended, if available. |
|
The alternative description for the ad. |
|
clickThrough (optional) |
|
The website of the advertisement. |
|
The content of the ad, as HTML. |
|
|
The height of the ad, in pixels. |
|
|
The URI of the ad content as specified in the VAST file. |
|
|
The width of the ad, in pixels. |
The identifier of the element in which the companion ad should be appended, if available.
Signature:
adSlotId?: string;
Only available for Google DAI and THEO ads if provided in the VAST.
The alternative description for the ad.
Signature:
altText: string;
- Returns value as reported in the VAST StaticResource. If not specified, it returns an empty string.
- Returns an empty string for THEO ads if not available.
- Returns an empty string for Google IMA / Google DAI integrations.
The website of the advertisement.
Signature:
clickThrough?: string;
- Only available for StaticResource if specified by the VAST. Otherwise returns an empty string.
The content of the ad, as HTML.
Signature:
contentHTML: string;
- Available for StaticResource and HTMLResource in THEO ad system.
- Available in the DAI ad system.
The height of the ad, in pixels.
Signature:
height: number;
- Only available for IMA ad system and THEO ad system.
The URI of the ad content as specified in the VAST file.
Signature:
resourceURI: string;
- Only available in the THEO ad system for StaticResource. Otherwise returns an empty string.
The width of the ad, in pixels.
Signature:
width: number;
- Only available for IMA ad system and THEO ad system.