I am adding AdMob Interstitial adds to my Android Cordova app. I preload the ad with this call during a natural break in the game:
if(AdMob) AdMob.prepareInterstitial( {adId:admobid.interstitial, autoShow:false} );
But, if the user navigates to the next screen and replays the game, and the ad is still pre-loading in the background, it obviously affects the performance of the app. My app is about exact timing, so this ruins the game.
So, I would like to cancel the pre-load or dispose of it somehow, but I do not see this sort of option in the AdMob API. Another option would be to prevent the player from navigating to the next screen until a certain amount of time has passed, but there is no timeout option for AdMob preload either.
The exact plugin I am using is 'cordova-plugin-admobpro': https://github.com/floatinghotpot/cordova-admob-pro