iOS exposureChange not correct after mraid.expand()

85 views
Skip to first unread message

gregor...@celtra.com

unread,
Jun 26, 2024, 10:45:27 AMJun 26
to Google Mobile Ads SDK Developers
Hi team,
reproducible in Mobile Ads SDK (iOS) version 11.6.0 (also in earlier versions as well)
after calling mraid.expand() and ad expands,
exposureChange emits an event with the exposedPercentage value being 0.
Which is not correct, should be 100 since the ad is still in view.

Works as expected on Android.

Min example code:
<button id="btn"> Expand </button>
<div id="output"></div>
<script src='mraid.js'></script>
<script>
var btn = document.querySelector('#btn');
var output = document.querySelector('#output');

mraid.addEventListener('ready', function() {
mraid.addEventListener('exposureChange', function(exposedPercentage) {
output.innerHTML += 'ExposureChange: ' + exposedPercentage + ' ';
});
});

btn.addEventListener('click', function() {
mraid.expand();
});

document.querySelector('body').style.background = 'yellow';
</script>

Thanks,
Gregor

gregor...@celtra.com

unread,
Jul 4, 2024, 5:25:51 AMJul 4
to Google Mobile Ads SDK Developers
Hi team,
did you manage to take a look at this bug?

Thanks

Mobile Ads SDK Forum Advisor

unread,
Jul 4, 2024, 9:02:46 AMJul 4
to google-adm...@googlegroups.com
Hi Gregor,

Thank you for contacting us.

As per IAB MRAID page documentation An exposedPercentage value of 0.0 (zero) indicates the current ad container is not in view or has been moved to the background.

In order to check the creative behavior we need a issue reproducible project. Kindly provide us a sample project replicating the issue. 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002tJbLbQAK&entry.80707362=00245148

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

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

Thanks,
 
Google Logo Mobile Ads SDK Team


gregor...@celtra.com

unread,
Jul 5, 2024, 9:36:58 AMJul 5
to Google Mobile Ads SDK Developers
Hi,

thank you for further instructions.

Uploaded sample project through the form.

It can be seen that after the Expand button is clicked and the ad expands, it outputs exposureChange with value 0.

Thanks 

Mobile Ads SDK Forum Advisor

unread,
Jul 5, 2024, 2:40:01 PMJul 5
to google-adm...@googlegroups.com

Hi,

We didn’t receive your sample project yet. Kindly re share your sample project to do further investigation.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, kindly provide requested information to us via reply to author option or using the steps below:

Nupesh Hajban

unread,
Jul 7, 2024, 11:46:30 PMJul 7
to Google Mobile Ads SDK Developers
Hi

  I hope your doing well,
I placed Some Admanager Banner Ads in my app, which is already live on playstore with running of admob ads perfectly. Admanager test Ads perfect loaded and Showing also (Both Test & Real Device), But Admanger Adx MA Real ads not loading or showing in app .Please Help 

Thanks.

Mobile Ads SDK Forum Advisor

unread,
Jul 8, 2024, 5:07:08 AMJul 8
to bhoi...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

Could you confirm whether the mentioned issue is reproducible in our Google Sample Project as well? Please share the app ID, ad unit ID  and SDK version with us so that we can conduct a thorough investigation via reply to author option.

Nupesh Hajban

unread,
Jul 8, 2024, 5:13:26 AMJul 8
to Google Mobile Ads SDK Developers
we have uploaded apk 


--

---
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/5e81333f-3f1c-4e9c-8661-b905b8f9d0dbn%40googlegroups.com.

gregor...@celtra.com

unread,
Jul 8, 2024, 5:23:17 AMJul 8
to Google Mobile Ads SDK Developers
Hi,
submitted the form again, also direct link https://drive.google.com/file/d/1OAqcgq1McGRKWBOZWa93QwcGN7gICuzs/view?usp=sharing.
It is googleads-mobile-ios-examples-main/Swift/admob/BannerExample with simple ad example.

Nupesh Hajban please open separate topic for your separate issue.

Thanks,
Gregor

Mobile Ads SDK Forum Advisor

unread,
Jul 8, 2024, 10:23:29 AMJul 8
to bhoi...@gmail.com, google-adm...@googlegroups.com
Hi,

Could you please share a sample project file which is uncompiled so that it would be better to debug the issue.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

Mobile Ads SDK Forum Advisor

unread,
Jul 9, 2024, 12:20:58 PMJul 9
to google-adm...@googlegroups.com
Hi Gregor,

I have checked the sample project and the HTML creative associated with the ad unit, and I'm able to reproduce the mentioned issue. Before raising this concern to the wider team could you please call the getState() function and confirm the state of the ad returned by the getState()? 

Also do confirm whether you are facing this issue only with this HTML sample creative? If possible kindly provide a scenario with a live HTML sample creative.

gregor...@celtra.com

unread,
Jul 17, 2024, 1:04:38 AM (11 days ago) Jul 17
to Google Mobile Ads SDK Developers
Hi,

if you would like to test the correctness of getState() function feel free to do so, but no matter what it returns, doesn't change the fact that exposureChange is emitting the wrong value. Testing any other function is work for your team.

Yes, it occurs in live creatives, where it is causing a couple of issues:
- Viewable time of the ad (that we measure) is wrong, because exposureChange with the value of zero is saying that the ad is no longer in view.
- We pause videos and animations if exposureChange emits zero, as the ad is considered out of view. On iOS now it means that ad experience is severely degraded, because videos and animations are not playing even when the ad is viewable.

(When working correctly) exposureChange with a value of zero should mean that the ad was either scrolled away in the app, the user switched to another app, closed the whole app, turned off the phone screen, etc. (Just repeating what is also stated in MRAID specs for exposureChange).

Thanks,
Gregor







Mobile Ads SDK Forum Advisor

unread,
Jul 17, 2024, 3:21:01 AM (11 days ago) Jul 17
to gregor...@celtra.com

Hi Gregor,

Thank you for getting back to us.

Yes, the issue is replicating in our Google samples, Having said that I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated. 

Reply all
Reply to author
Forward
0 new messages