admob-native-advanced-feed icon indicating copy to clipboard operation
admob-native-advanced-feed copied to clipboard

UI slow down With Pagination

Open charlizesmith opened this issue 6 years ago • 7 comments

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 avatar Aug 29 '19 07:08 charlizesmith

@charlizesmith , do you find any solution ? It is very annoying bug and cause performance issues...

eakteam avatar Sep 30 '19 23:09 eakteam

+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.

igor-rif-shevchenko avatar Nov 03 '19 16:11 igor-rif-shevchenko

The same problem here. It is hurting my app performance

efratos1 avatar Nov 10 '19 06:11 efratos1

+1, same problem here

baderkhane avatar Feb 29 '20 22:02 baderkhane

+1, same problem here

cuichanghao avatar Apr 06 '20 12:04 cuichanghao

+1, same issue. It make my app lagging. Please help to check

tiendung717 avatar Apr 10 '20 11:04 tiendung717

Have you got any answers guys ?

zumry-newswav avatar Jun 05 '20 05:06 zumry-newswav