Interface MediaContent

Represents the media content information associated with an ad.
Properties
aspectRatio
The aspect ratio of the media content, expressed as width divided by height.
currentTime?
The current time of the video in seconds from the start of the video.
duration?
The duration of the media content in seconds.
hasVideoContent
Whether the media content contains video.
videoAdInfo?
The video content configuration.

Properties


Readonly aspectRatio

aspectRatio: number
The aspect ratio of the media content, expressed as width divided by height.

Optional Readonly currentTime

currentTime?: number
The current time of the video in seconds from the start of the video.

This field is populated only when hasVideoContent is true.

Optional Readonly duration

duration?: number
The duration of the media content in seconds.

This field is populated only when hasVideoContent is true.

Readonly hasVideoContent

hasVideoContent: boolean
Whether the media content contains video.

Optional Readonly videoAdInfo

videoAdInfo?: VideoAdInfo
The video content configuration.

This field is populated only when hasVideoContent is true.