Class: AdEvents

AdEvents(adSessionnon-null)

Ad event API enabling the JS component to signal to all verification providers when key events have occurred. The OM SDK JS service will allow only one ad events instance to be associated with the ad session and any attempt to create multiple instances will result in an error.

Constructor

new AdEvents(adSessionnon-null)

Parameters:
Name Type Description
adSession AdSession instance to be associated with the ad events.

Methods

impressionOccurred()

Notifies all verification providers that an impression event should be recorded.
Throws:
error if the native ad session has not been started.