admob - Android Publisher Interstitial Ad displaying after close -
admob - Android Publisher Interstitial Ad displaying after close -
my application opens publisher interstitialad whenever start when user closes reopens. process happens , can't utilize application, can help me?
public void getintertitalads(boolean isportraitmode) { interstitial = new publisherinterstitialad(context); if(isportraitmode) interstitial.setadunitid(tags.getadunitinterstitial()); else interstitial.setadunitid(tags.getadunitinterstitialtablet()); adlistener adlistener = new adlistener() { @override public void onadloaded() { super.onadloaded(); if(interstitial!=null) interstitial.show(); } @override public void onadclosed() { super.onadclosed(); interstitial = null; } }; // create advertisement request. publisheradrequest adrequest = new publisheradrequest.builder() .build(); // begin loading interstitial. interstitial.setadlistener(adlistener); interstitial.loadad(adrequest); }
never phone call interstitial.show()
adlistener#onadloaded()
. have no command on when called , presents poor user experience. instead phone call interstitial.show()
@ natural break point in app.
there no need have separate adunitids portrait , landscape. interstitials same regardless.
all code in getintertitalads()
(sic) method should activity#oncreate
i suspect problems stem combination of 1 , 3.
android admob interstitial publisher
Comments
Post a Comment