Interface RunOptions

Options map to start video ad with run

Hierarchy

Properties

hooks?: Hooks

Optional map with hooks to configure the behaviour of the ad.

logger?: Console

Optional logger instance. Must comply to the Console interface. Defaults to window.console

pauseOnAdClick?: boolean

if true it will pause the ad unit whenever a user click on the ad Defaults to true

responsive?: boolean

if true it will resize the ad unit whenever the ad container changes sizes Defaults to false

timeout?: number

Timeout number in milliseconds. If set, the video ad will time out if it doesn't start within the specified time.

tracker?: PixelTracker

If provided it will be used to track the VAST events instead of the default PixelTracker.

videoElement?: HTMLVideoElement

Optional videoElement that will be used to play the ad.

viewability?: boolean

if true it will pause the ad whenever is not visible for the viewer. Defaults to false

Methods

Generated using TypeDoc