RE: [google-admob-ads-sdk] handling mraid events in sourceless iframe: event propagation and bridging concerns

61 views
Skip to first unread message

Mobile Ads SDK Forum Advisor

unread,
Aug 22, 2024, 11:58:59 PM8/22/24
to shekharis...@gmail.com, google-adm...@googlegroups.com

Hi Shekhar,

Thank you for contacting the Mobile Ads SDK support team. 

MRAID governs interactions between the ad and app using an MRAID implementation that initiates a container for ad display. Ad designers must include a script request for mraid.js, but the host actually supplies the JavaScript libraries using a webview. The webview must ensure that the appropriate JavaScript libraries are made available to the ad as soon as possible after the mraid.js reference is made. The webview confirms that the libraries are ready by sending the ready event. Host provides MRAID JavaScript bridge for ads (refer to page 16, 3.1 Initialization Overview )

Viewability - exposureChange event is supported and we recommend using a listener for the new exposureChange event rather than the deprecated viewableChange event. The method mraid.isViewable() is also deprecated. The measures of viewability must consider factors beyond whether the current webview is in view. In MRAID 3.0, isViewable() is deprecated but remains in this version for backward compatibility. Instead, recommendations include practices that use exposureChange events to better communicate the visibility of the ad.

Revised MRAID events implementation: This version provides guidance for proper communication of states between the host and the ad and unambiguous implementation of sequence of events. (refer to page 11, 1.4.1 Updates in MRAID 3.0 )

I hope this helps! Let me know if you have additional questions. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vFFct:ref" (ADR-00264496)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages