Viewability Events

🚧

We do not recommend using viewability API with iframes.



.on('containerViewable')

Event fired denoting the viewability of the player container (named <div> element)

{
    "viewable": 0,
    "type": "containerViewable"
}
Value Description
type string Type of the event

This will always return containerViewable.
viewable boolean Viewability of the player container

Possible Values:
  • 0: Player container is not in view
  • 1: Player container is in view


.on('viewable')

Event fired denoting the viewability of the player

{
    "viewable": 1,
    "type": "viewable"
}
Value Description
type string Type of the event

This will always return viewable.
viewable boolean Viewability of the player

Possible Values:
  • 0: Player is not in view
  • 1: Player is in view

© 2007-2024 Longtail Ad Solutions, Inc.