Optional
hooksOptional map with hooks to configure the behaviour of the ad.
Optional
loggerOptional logger instance. Must comply to the Console interface.
Defaults to window.console
Optional
pauseif true it will pause the ad unit whenever a user click on the ad
Defaults to true
Optional
responsiveif true it will resize the ad unit whenever the ad container changes sizes
Defaults to false
Optional
timeoutTimeout number in milliseconds. If set, the video ad will time out if it doesn't start within the specified time.
Optional
trackerIf provided it will be used to track the VAST events instead of the default PixelTracker.
Optional
videoOptional videoElement that will be used to play the ad.
Optional
viewabilityif true it will pause the ad whenever is not visible for the viewer.
Defaults to false
Optional
vpaidIf false and it gets a VPAID ad, it will throw an error before starting the ad and continue down in the waterfall. Defaults to true
.
Optional
wrapperSets the maximum number of wrappers allowed in the VastChain.
Defaults to 5
.
Will be called once the ad is ready with the ad unit.
the ad unit instance.
Optional
onWill be called once the ad starts with the ad unit.
the ad unit instance.
Optional
onWill be called whenever the an error occurs within the ad unit. It may be called several times with different errors
the ad unit error.
Data object that will contain.
Optional
onGenerated using TypeDoc
Options map to start one of the ads with runWaterfall