The EBCMD module expands the EB object, adding methods and events that enable you to interact with the MRAID API even when the ad is being served within an unfriendly iFrame.
Before the AdKit declaration in our HTML files, you must include modules and declare them in an array variable called EBModulesToLoad
.
The following example loads the EBCMD module for use in an AAS ad.
<script>EBModulesToLoad = ['EBCMD'];</script>
The following methods correspond to their equivalents in the MRAID specification. For more information, see the IAB TechLab article, Mobile Rich Media Ad Interface Definition (MRAID) Version 3.0.
-
EB.playVideoOnNativePlayer
-
EB.shouldUseNativePlayer
-
EB.setNativePlayerAsDefault
-
EB.createCalendarEvent
-
EB.storePicture
-
EB.isMobileDevice
-
EB.getSDKData
-
EB.setResizeProperties
-
EB.setExpandProperties
-
EB.setOrientationProperties
-
EB.resize
-
EB.close
The EBCMD module adds support for the following events that are specific to mobile In-app environments. For more information about the available events, see Events.
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