Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Event list

AdSkipped

AdRemainingTimeChange

AdVolumeChange

AdSizeChange

AdImpression

AdVideoFirstQuartile

AdVideoMidpoint

AdVideoThirdQuartile

AdVideoComplete

AdClickThru

AdPaused

AdPlaying

AdError

Inventory

InventoryRequest

ContentVideoStart

ContentVideoFirstQuartile

ContentVideoMidpoint

ContentVideoThirdQuartile

ContentVideoComplete

ContentPaused

ContentPlaying

ContentClickThru

ContentNextClicked

ContentPrevClicked

ContentPlayClicked

ContentPauseClicked

CloseClicked

CloseFloatingClicked

Impression Data

AdImpression event provides extra data about each impression, such as the impression CPM

Code Block
player.on("AdImpression", function(event, eventData){
  
});

eventData contains the following data

Attribute

Type

Description

content

Object

Info about the content that is currently running
Same info that is passed in config.content.contents[i]

p1

Object

Ad impression information

{ 2 "asid": "Ad source id", 3 "clickThrough": "Ad click url if available", 4 "videoUrl": "Url of media file if available", 5 "mt": "Media type, vast or vpaid", 6 "tagInfo" : { 7 "url": "Actual ad source meta data, template of url", 8 "bidCpm": Actual bid cpm (prebid, rtb) or floor if vast/platform link, 9 "pubCpm": Publisher CPM after rev share, 10 "floorCpm": floor price used 11 "bidCode": "Bidder code from prebid", 12 "vast": Array of vast chain 13 } 14}

p1.asid

String

Ad source id

p1.clickThrough

String

Ad click through url if available

p1.videoUrl

String

Ad video url if available

p1.mt

String

Media type - vast or vpaid

p1.tagInfo

Object

Additional tag info

p1.tagInfo.url

String

Ad source ad unit or vast url

p1.tagInfo.bidCpm

Number

Bid cpm (prebid and rtb)

p1.tagInfo.pubCpm

Number

Publisher cpm taking into account publisher accounting rules

p1.tagInfo.floorCpm

Number

The floor cpm used

p1.tagInfo.bidCode

String

Prebid bidder code, GAM, Amazon

Player Methods

The following player methods are available:

...