addEventListener(event_type, callback)
Mtx events
This method can be used to listen for events related to the incentivized advertising API
The addEventListener
method takes two arguments, the event type, and a callback function:
Name | Type | Description |
---|---|---|
| String | Type of event to listen for |
| Function | Function to call when the event is triggered |
Incentivized ad events
The following event types are currently supported:
Name | Description |
---|---|
| Ads are now available, and |
| Ads are not available, and |
| An ad is being displayed |
| An ad has completed successfully, and the player should be rewarded |
| Ad ad has been closed before completion, the player should not be rewarded |
Related: