I have a big problem with admob interstitial adds. Ads openinig delay and user clickin invalid. Lots of invalid click occurs. This is bad user experience can be suspend my AdMob account. How can I get rid of this bad situation.
I want it to work [like this][1]
My code:
onCreate method;
interstitial = new InterstitialAd(this);
interstitial.setAdUnitId(REKLAM_ID);
AdRequest adRequest1 = new AdRequest.Builder().build();
interstitial.loadAd(adRequest1);
interstitial.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
if (interstitial.isLoaded()) {
interstitial.show();
}
}
});
So What is the best way for interstitial use?
My app has a few page and when I add in anyone it open timeless specially delay open when user press any button.
I want to start when app loading is this code true?
First you need to decide which is the best time to show the admob ad. You can check the admob best practices for interstitial Interstitial best practice
After that you need to separate the ad loading to the ad presentation in order to avoid ad display on unwanted time
first load the ad:
When you want to display the ad - check for availability and display if its loaded:
That way the ad will display immediately without delay