You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 26, 2022. It is now read-only.
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.
+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.
Activity
eakteam commentedon Sep 30, 2019
@charlizesmith , do you find any solution ? It is very annoying bug and cause performance issues...
igor-rif-shevchenko commentedon Nov 3, 2019
+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.
efratos1 commentedon Nov 10, 2019
The same problem here. It is hurting my app performance
baderkhane commentedon Feb 29, 2020
+1, same problem here
cuichanghao commentedon Apr 6, 2020
+1, same problem here
tiendung717 commentedon Apr 10, 2020
+1, same issue. It make my app lagging. Please help to check
zumry-newswav commentedon Jun 5, 2020
Have you got any answers guys ?