You can subscribe to the events listed in this article using the EB.addEventListener()
API method. To subscribe to events, you need to load and initialize our creative API. For more information, see Load and Initialize the API.
Event |
Description |
---|---|
|
Triggers when the API is initialized. |
|
Triggers when any expandable panel that belongs to the ad is collapsed. |
|
Triggers when the devicemotion event is detected in the parent window. |
|
Triggers when an expandable panel that belongs to the ad is expanded. |
|
Triggers when the page is fully loaded. |
|
Triggers when the screen orientation changes. Only works on mobile devices. |
|
Triggers each time data changes as a result of an event. Use when building ads that are compliant with MRAID (Mobile Rich Media Ad Interface Definitions). |
|
Triggers when the viewability of the ad changes. For example, when the user scrolls the ad up above the fold. You can access this information synchronously using |
The following events are only triggered when the EBCMD module is loaded. For more information, see About modules.
Event |
Description |
---|---|
|
Triggers the event when MRAID or another mobile-device In-app container tells the ad to collapse. |
|
Triggers the event when MRAID or another mobile-device In-app container tells the ad to expand. |
|
Triggers the event when MRAID or another mobile-device In-app container tells the ad that there is a change in the data. |
|
Triggers the event when MRAID or another mobile-device In-app container sends a command to the ad. |
Comments