2

I have integrate admob native express ads in my android application but ads take some time to load.

please suggest how to decrease ads loading time on activity.

Thanks

Vishnu
  • 711
  • 2
  • 6
  • 11
  • please show how you are loading them ... – Sohail Zahid Jul 25 '16 at 13:29
  • Before setContentView() i have used below code:- -- nativeAd = new NativeAd(PatternOnSecuredApp.this, "MY KEY"); nativeAd.setAdListener(PatternOnSecuredApp.this); nativeAd.loadAd(NativeAd.MediaCacheFlag.ALL); – Vishnu Jul 25 '16 at 13:30
  • 1
    it usually takes some time to load as it has to be retrieved from the server, and its not a good idea to make the activity wait for it to be loaded. – Muhammed Refaat Jul 25 '16 at 14:23

1 Answers1

0

To load add speedy But How?

  1. Initialize them in onCreate and after setContentView() view before doing anything else.
  2. Dont load them in background thread.
Sohail Zahid
  • 8,099
  • 2
  • 25
  • 41