admob-native-advanced-feed
admob-native-advanced-feed copied to clipboard
UI slow down With Pagination
I ran this code and the native ads in the list are sometimes working fine. I want to achieve this with Pagination. Whenever i call below function for next page, it stuck UI (Recycleview) because may be i am calling it on Main thread.
// Load the Native ads.
adLoader.loadAds(new AdRequest.Builder().build(), 5);
I also used below method and it is giving good performance as compare to above.
// Load the Native ads.
adLoader.loadAd(new AdRequest.Builder().build());
I also tried with Handler, runOnUithread, Asynchtask but No success.
On Official site mention below note: [https://developers.google.com/admob/android/native/start] Build an AdLoader Note: Make all calls to the Mobile Ads SDK on the main thread.
Any suggestion how to solve this issue?
@charlizesmith , do you find any solution ? It is very annoying bug and cause performance issues...
+1, also saw this note to make all calls on the main thread. But adLoader.loadAd() takes about 100ms which is very bad... I don't understand why loadAd() has to be in UI thread? It just loads ad, not showing it.
The same problem here. It is hurting my app performance
+1, same problem here
+1, same problem here
+1, same issue. It make my app lagging. Please help to check
Have you got any answers guys ?