Google Ads SDK 60% CPU usage while scrolling UITableView

150 views
Skip to first unread message

Daniil Semenov

unread,
Jun 22, 2021, 1:37:27 AM6/22/21
to Google Mobile Ads SDK Developers
I load ads when the user scrolls to the cell where the ad should be. I have a problem that the application starts to lag a lot and the device heats up. When profiling the application in Time Profiler, I noticed that ~ 50-60% is occupied by some object of the GADPostNotification class. Am I somehow loading ads wrong? Why does this object occupy so much CPU resources when the UITableView is fast and ads are loaded, what does it do?

Снимок экрана 2021-06-22 в 10.31.17.png
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Jun 22, 2021, 6:25:44 AM6/22/21
to semenof...@gmail.com, google-adm...@googlegroups.com
Hi Daniil,

Thank you for reaching out to us. Let me do the best I can to assist you in this.

With regard to your concern, it's an expected behavior that your app will get high CPU when loading an ads on one of the cells of UITableView. In addition, ads that contains video/animation greatly consumes cpu resources as well. The recommendation here is to reduce the number of ads on your UITableView.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


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