java - Delay in loading banner ads from admob -
i've been adding admob banner ads android app using standard code available in started section on website. fine except there's few second delay after activity starts before ad loaded. i've seen people having same problem , asking preloading ad there's no clear solution available anywhere. know apps on market don't have delay question how work around it? load ads array list in loading activity , store them in shared preferences have read it's discouraged.
from have read , understood there not can it. take time. 1 solution have seen is
adrequest adrequest = new adrequest.builder().build(); minterstitialad.setadlistener(new adlistener() { @override public void onadloaded() { log.i(tag," interstitial add :loaded"); } @override public void onadfailedtoload(int error) { log.i(tag,"could not load interstitial add"); } } minterstitialad.loadad(adrequest);
this interstitial adds same goes banner ads well. hide add section , make visible when ads loaded.
note : suggestion got when had similar doubt. but have heard accounts getting banned due type of code, not sure it's reasons though. please groundwork before adding code app.
Comments
Post a Comment