Performance hit when upgrading GoogleMobileAds on iOS

257 views
Skip to first unread message

Alexandre Moureaux

unread,
Oct 7, 2020, 2:24:28 PM10/7/20
to Google Mobile Ads SDK Developers
Hi,

We were using quite an old version of ad mobs (7.27) and upgraded to 7.66 but noticed severe performance hit when scrolling on a page with ads.

I've reproduced on a simple project (https://gist.github.com/Almouro/18f01657db6716eb118770ea5df56cb5) adding several DFPBanner to a scroll view and testing the performance difference between 7.27 and 7.66.
On 7.27, I can scroll on my device with almost 60FPS in every case, on 7.66 it's always laggy.

Any idea what could be causing this?
Let me know if you need additional information,

Thanks!
Alex

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 8, 2020, 4:47:44 AM10/8/20
to alexa...@bam.tech, google-adm...@googlegroups.com
Hi Alex,

Thank you for reaching out to us.
 
With regard to your concern, this happen when ads is currently loading into your app after ad request. However, the FPS drop should be gone after the ads has been loaded/displayed.  Could you confirm if the issue that you reported occurs even after the ads has been loaded? If so, could you provide to us a memory profiler and screencast of the issue, so we could further investigate.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q267Xgg:ref

Alexandre Moureaux

unread,
Oct 15, 2020, 4:52:34 AM10/15/20
to Google Mobile Ads SDK Developers
Hi Teejay, thanks for your reply!

Yes the issue occurs even after the ads have been loaded.

Let me provide more details:
In our app we notice the issue in:
- a screen containing a scrollview with 3 banners
-  a screen with a UIPageViewController with a scrollview per tab, each scrollview containing a banner

We noticed only the upgrade of the AdMob sdk from 7.27 to 7.66 was triggering some frame drop when scrolling, even after the ads have been loaded, mainly on real devices like Iphone 7 or 8. Memory usage is however massively better (and congrats on that!)

To pinpoint the exact cause of the issue, I've created a dummy project with a scrollview containing 50 ads (this is quite silly of course, but it was to be able to easily reproduce the issue on the iOS simulator, and it provides similar results to what we were noticing on the production app)

I've provided 2 screen recording of the simulator and FPS profiling using Detox instruments (https://github.com/wix/DetoxInstruments). In both scenarios:
- before the recording, I've made sure all the ads are loaded (scrolled to the bottom and back up to make sure they were)
- during the recording, I just make simple scroll gestures.
The "admob new version" recording is using version 7.66.0, you can see on the purple graph that whenever I scroll I consistently experience frame drops.
The "admob old version" recording is using version 7.29.0, there are consistenly no frame drop when scrolling.

With 7.66, memory usage is however 4 times better than with 7.29 (~150MB vs ~550MB for the 50ads)

I've also run a dichotomy to check what was the first admob version impacting the performance and surprisingly I've found 7.35 to be the first one (so long before the shift to WKWebView), by which I mean:
- I consistently experience no frame drops in 7.34
- I consistently experience frame drops in 7.35

Let me know if you need any additional information!

Thanks,
Alex


Alexandre Moureaux

unread,
Oct 15, 2020, 4:54:42 AM10/15/20
to Google Mobile Ads SDK Developers
The videos failed to send in the previous message, so here's a link: https://drive.google.com/drive/folders/1tihysUTHnHL7bA5nr7xjrqcli8V5Q4OV?usp=sharing

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 15, 2020, 6:39:09 AM10/15/20
to alexa...@bam.tech, google-adm...@googlegroups.com

Hi Alex,

Thank you very much sharing additional information regarding your concern. For our testing reference, could you also share the sample project file of the app you’ve mentioned earlier? Please don’t forget to use the Reply privately to author option to share this information privately.

Regards,

Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q267Xgg:ref

Alexandre Moureaux

unread,
Oct 15, 2020, 6:52:44 AM10/15/20
to Google Mobile Ads SDK Developers
Hi Sherwin,

Here is the sample project I've used for testing: https://github.com/Almouro/admob-test. The scrollview is in https://github.com/Almouro/admob-test/blob/master/BannerExample/ViewController.m#L42 (you just need to replace the ad unit id by the one I can provide you privately there)

How do I reply privately though? I get the message below when trying to:

Alexandre Moureaux

unread,
Nov 2, 2020, 4:17:54 AM11/2/20
to Google Mobile Ads SDK Developers
Hello,

I've received a private reply on October 15th "Let me bring this up with my team. We will get back to you as soon as we have more information." to which I've replied, but didn't get any answer.

Would it be possible to know what is the status?

Let me know if I should provide more information,

Thanks!

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 2, 2020, 10:33:22 AM11/2/20
to alexa...@bam.tech, google-adm...@googlegroups.com
Hi Alexandre,

Thank you for responding back. I work along with Aryeh, and will be assisting you today. I have looked into this, and at the moment their is no update to share with you. Once we have some more information we will be certain to pass it along to you. Or someone else from our team may contact you..

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q267Xgg:ref

Alexandre Moureaux

unread,
Dec 4, 2020, 8:01:11 AM12/4/20
to Google Mobile Ads SDK Developers
Hi William,

Thanks for the update. One month later and still no news though.
Is the team working on some improvements in that regard or is it not currently in the pipe?

Apologies for the impatience, this is sadly currently a blocker for us to upgrade.

Thanks! Any update is appreciated!

Mobile Ads SDK Forum Advisor Prod

unread,
Dec 4, 2020, 12:08:01 PM12/4/20
to alexa...@bam.tech, google-adm...@googlegroups.com
Hi Alexandre,

Thank you for responding back to our earlier message. I have reached out to our team to see what information they have gathered. At present we have nothing to pass along. But once we get something that can be of assistance to you we will be certain to let you know.

ردفان الصريد الردفاني

unread,
Dec 4, 2020, 3:23:03 PM12/4/20
to Alexandre Moureaux, Google Mobile Ads SDK Developers
يمي

مُرسل من هاتف Huawei الخاص بي


-------- الرسالة الأصلية --------
الموضوع: Re: [google-admob-ads-sdk] Performance hit when upgrading GoogleMobileAds on iOS
من: Alexandre Moureaux
إلى: 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/a8c7151b-c0ae-4d52-897d-146ecc3e45d4n%40googlegroups.com.

Mobile Ads SDK Forum Advisor Prod

unread,
Dec 4, 2020, 3:44:13 PM12/4/20
to alrdfan...@gmail.com, alexa...@bam.tech, google-adm...@googlegroups.com
Hi there,

Are looking for assistance integrating the Mobile Ads SDK into your app? If so, kindly open another thread so that this thread can be dedicated to the original issue.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q267Xgg:ref

عبد الله ابودرويش

unread,
Dec 4, 2020, 4:04:40 PM12/4/20
to Google Mobile Ads SDK Developers
السلام العليكم انا عبدالله هل تطبيقي سار اعلان

Mobile Ads SDK Forum Advisor

unread,
Mar 17, 2023, 2:53:05 PM3/17/23
to alexa...@bam.tech, google-adm...@googlegroups.com

Hi,

I hope you're doing well.

I just want to circle back with regard to your concern for the performance in the scrollview drops frames when many banners are already loaded in newer SDK's, our team mentioned that they are intend to fix as broader performance improvement effort. We also suggest to always use the latest SDK for updated features and fixed bugs. Feel free to reach back to us if you still encounter any issue with regard to this in the latest version.

Regards,

Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q267Xgg:ref
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Mar 20, 2023, 4:01:53 AM3/20/23
to hasanceli...@gmail.com, google-adm...@googlegroups.com
Hi Hasan,

We do understand the adjustment needed on every SDK update. However, we would recommend using the latest version as soon as possible as older version will be deprecated soon.
Reply all
Reply to author
Forward
0 new messages