MRAID "exposureChange" event is not fired

250 views
Skip to first unread message

Hideyoshi Moriya

unread,
May 24, 2020, 11:11:03 AM5/24/20
to Google Mobile Ads SDK Developers
Hi Google Mobile Ads SDK team,

# Environment
- iOS Mobile Ads SDK version: 7.60.0
- Model and iOS version: iPhone 11 Pro (iOS 13.4.1) / iPhone Simulator iPhone X (iOS 11.0.1)

# Example code
Note: If my ad manager ad unit code is needed for testing, please contact me.

# Issue 
In my iOS code above, an ad banner view is added on top of UIScrollView. The MRAID's "exposureChange" event should be fired when a part of the ad banner view is off screen. However, the "exposureChange" event is not fired. In the example app, you can check if the "exposureChange" event is fired via app event delegate.

Ad creative HTML
mraid.addEventListener('exposureChange', (exposedPercentage, visibleRectangle, occlusionRectangles) => {
    admob
.events.dispatchAppEvent("mraid", `exposureChange: ${exposedPercentage}`);
});

iOS
func adView(_ banner: GADBannerView,
                didReceiveAppEvent name
: String,
                withInfo info
: String?) {
    guard let info
= info else {return}
   
print("\(name) - \(info)")
}


# Expected behavior
The MRAID "exposureChange" event is fired whenever the percentage of ad container exposure has changed.
Refs:

# Other info
- The "exposureChange" event was fired normally about a year ago as far as I know.
- Other MRAID events (viewableChange, ready) are fired normally.
- The "audioVolumeChange" event is also not fired.
- It seems it's not an issue in the client side SDK but a script which is loaded in the SDK because the event is not fired with the exact same code and old SDK (7.43.0).

Thanks,
Hideyoshi

Mobile Ads SDK Forum Advisor Prod

unread,
May 26, 2020, 3:27:01 AM5/26/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi there,

Thank you for providing an extensive rundown of the issue. For us to investigate further, would it be possible for you to provide a Charles log (see instructions here) capturing the ad? This will help and enable to test the ad on our test App environment by trafficking the creative in the test network.
Kindly send the requested details via Reply privately to author option.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5004Q1zrbmV:ref

Hideyoshi Moriya

unread,
May 26, 2020, 9:20:20 AM5/26/20
to Google Mobile Ads SDK Developers
Hi Teejay,

I have replied to you privately and attached Charles log.
Please let me know if further info is needed.

Thanks!
Hideyoshi


2020年5月26日火曜日 16時27分01秒 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
May 26, 2020, 3:13:24 PM5/26/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi there,

I work with Teejay and will be assisting you today. Thank you for the Charles log. I was able to find the ad unit Id you made and use it in the app. The creative that came up was able to send the callback for viewable change of false and true but not percentage of view changed. Let me consult with the rest of my team. I will get back to you as soon as we have more information.

Kind regards,
Aryeh Baker

Hideyoshi Moriya

unread,
Jun 2, 2020, 11:01:05 AM6/2/20
to Google Mobile Ads SDK Developers
Hi Aryeh and team,

Thanks so much for your investigation on this.
Would you mind giving me updates or estimated time to fix the issue?

Please let me know if there's anything I can help you with.

Best regards,
Hideyoshi

2020年5月27日水曜日 4時13分24秒 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 2, 2020, 1:22:16 PM6/2/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi Hideyoshi,

My team is looking into it now. When we have more information we will get back to you. Thank you for your patience.

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 10, 2020, 1:38:56 AM6/10/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi Hideyoshi,

I work along with Aryeh. 

The team provided their feedback that the issue is not reproducible on the latest version of the SDK (7.60.0). Could you please confirm if the behavior occurs to on your end with the said version?

Regards,
Teejay Pimentel

Hideyoshi Moriya

unread,
Jun 10, 2020, 9:22:45 AM6/10/20
to Google Mobile Ads SDK Developers
Hi Teejay,

Thanks for your reply and investigation.
I tried again with the latest SDK version (7.60.0) and confirmed the issue is still reproducible.
I've already provided the example code and Charles log with your team before.

Would mind giving me an example code which can confirm if The MRAID "exposureChange" event is fired?
Also, just in case, it would be appreciated if you could check the behavior with an external (non-Google) network because this issue might not happen within Google's internal network.

Thanks,
Hideyoshi


2020年6月10日水曜日 14時38分56秒 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 10, 2020, 10:06:33 AM6/10/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi Hideyoshi,

I retested your app making sure that podfile.lock had the latest SDK version and I found that the exposure call wasn't triggering. Let me raise this and your comments with the rest of the team. We will get back to you the soonest we have more information.

Kind regards,
Aryeh Baker

Hideyoshi Moriya

unread,
Jun 10, 2020, 11:54:13 AM6/10/20
to Google Mobile Ads SDK Developers
Hi Aryeh,

Thanks for the update.
I suspect there might be an issue on a script which is loaded inside the SDK because the "exposureChange" event used to be fired (at least a year ago) as expected.

I'm looking forward to getting back from you.

Thanks!
Hideyoshi


2020年6月10日水曜日 23時06分33秒 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 10, 2020, 2:59:36 PM6/10/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi Hideyoshi,

That sounds plausible, especially as you reported that it was working a year ago on old SDK and doesn't work on old SDK anymore. I will bring up this suggestion too to the rest of the team.

Hideyoshi Moriya

unread,
Jun 30, 2020, 8:04:35 PM6/30/20
to Google Mobile Ads SDK Developers
Hi Mobile Ads SDK Team,

Any updates on this? Thanks!

Hideyoshi

2020年6月11日木曜日 3:59:36 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 30, 2020, 9:44:48 PM6/30/20
to hi...@a42.io, google-adm...@googlegroups.com

Hi Hideyoshi,

 

Thank you for your patience on this issue.

 

The team is still currently investigating on this. The latest finding we have so far is that there might be some js code that was being unnecessarily injected in the ad HTML, which might be causing this issue. Rest assured that we'll keep you updated on this.

 

Regards,

Ziv Yves Sanchez

Hideyoshi Moriya

unread,
Jul 30, 2020, 2:08:39 AM7/30/20
to Google Mobile Ads SDK Developers
Hi Ziv and Mobile Ads SDK Team,

It would be appreciated if you could share any updates on this.

Thanks!
Hideyoshi

2020年7月1日水曜日 10:44:48 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 30, 2020, 2:40:24 AM7/30/20
to hi...@a42.io, google-adm...@googlegroups.com

Hi Hideyoshi,

 

I'm afraid that the team is still currently investigating this issue. I've pinged those involved for any updates on this, and will get back to you if there are any.

Hideyoshi Moriya

unread,
Aug 31, 2020, 12:34:16 PM8/31/20
to Google Mobile Ads SDK Developers
Hi Mobile Ads SDK Team,

Any finding on this issue?
Please let me know if you need any additional info from our side.

Thanks!
Hideyoshi

2020年7月30日木曜日 15:40:24 UTC+9 mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Aug 31, 2020, 3:23:00 PM8/31/20
to hi...@a42.io, google-adm...@googlegroups.com
Hi Hideyoshi,

Thank you for reaching out to us. I have inquired to our team about any new updates on this. At the moment we are still looking into this to see what could be the cause. I ask for your patience as we look deeper into this for you.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q1zrbmV:ref

Hideyoshi Moriya

unread,
Jan 3, 2021, 5:50:17 AM1/3/21
to Google Mobile Ads SDK Developers
Any updates on this issue? Thanks!

2020年9月1日火曜日 4:23:00 UTC+9 mobileadssdkforumadvisor:

Kaushal Kumar

unread,
Jan 3, 2021, 5:54:32 AM1/3/21
to Hideyoshi Moriya, Google Mobile Ads SDK Developers
--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/9acfa66f-b8a9-4607-9c82-0deab63bca27n%40googlegroups.com.

Ma Chuột

unread,
Jan 3, 2021, 2:15:55 PM1/3/21
to Kaushal Kumar, Hideyoshi Moriya, Google Mobile Ads SDK Developers

Vào 17:54, CN, 3 thg 1, 2021 Kaushal Kumar <kaushalk...@gmail.com> đã viết:

Ma Chuột

unread,
Jan 3, 2021, 2:15:57 PM1/3/21
to Kaushal Kumar, Hideyoshi Moriya, Google Mobile Ads SDK Developers

Vào 2:15, Th 2, 4 thg 1, 2021 Ma Chuột <chocc...@gmail.com> đã viết:

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 3, 2021, 10:59:22 PM1/3/21
to hi...@a42.io, google-adm...@googlegroups.com

Hi Hideyoshi,

Thank you for following up on this.

I'm afraid that there is no update on this as of now. Rest assured that we're keeping you updated on this.
 

Google Logo
Ziv Yves Sanchez
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q1zrbmV:ref

Mobile Ads SDK Forum Advisor

unread,
Nov 8, 2022, 12:59:36 PM11/8/22
to hi...@a42.io, google-adm...@googlegroups.com
Hello,

I hope you're safe and doing fine.

I just want to circle back on this and ask if you still encounter the reported issue here. If so, please do let us know.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q1zrbmV:ref
Reply all
Reply to author
Forward
0 new messages