You can use the Overwolf ad object (the one created by calling
new OwAd()) to listen to events related to the displayed ad. Registering for an event can be done by calling the function
addEventListener on the ad object. Like many other libs, the first param sent to
addEventListener is the name of the event, and the second is a handler function for the event.
The following events are supported:
|Event Name||Fired when|
* – Only relevant for video ads
Showing multiple ads
If for some reason you wish to show more than one ad on your app, you can easily do so by creating multiple instances of
OwAd. Just make sure you pass a different container element for each instance.