Ad Event

Ad Event

This event type is raised by the ad as a notification when the ad state changes and when users interact with the ad. For example, when the ad starts playing, is clicked on, etc. You can register for the various state changed events:

player.on(event, function() {
  // do something
});

Example:

player.on('adsallcompleted', function() {
  window.console.log('ad all completed');
});

Event list

Event Description
adsallcompleted Fired when the ads manager is done playing all the ads
adsclick Fired when the ad is clicked
adscomplete Fired when the ad completes playing
adserror Fired when loading or playing ads error
adsfirstquartile Fired when the ad playhead crosses first quartile
adsimpression Fired when the impression URL has been pinged
adsloadstart Fired when start load ad
adsloaded Fired when ad data is available
adsmidpoint Fired when the ad playhead crosses midpoint
adspause Fired when the ad is paused
adsresume Fired when the ad is resumed
adsskipped Fired when the ad is skipped by the user
adsstarted Fired when the ad starts playing
adsthirdquartile Fired when the ad playhead crosses third quartile