PRODUCT
Follow

Overview

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.

To use the EBCMD module, you must load it by adding it to the EBModulesToLoad array.

<script>EBModulesToLoad = ['EBCMD'];</script>

Methods

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

Events

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

EBG.EventName.collapseAd

Triggers the event when MRAID or another mobile-device In-app container tells the ad to collapse.

EBG.EventName.expandAd

Triggers the event when MRAID or another mobile-device In-app container tells the ad to expand.

EBG.EventName.SDK_DATA_CHANGE

Triggers the event when MRAID or another mobile-device In-app container tells the ad that there is a change in the data.

EBG.EventName.SDK_EVENT

Triggers the event when MRAID or another mobile-device In-app container sends a command to the ad.

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments