I was wondering if there is a "right" way to temporarily disable the ads. I am making a game (hence the display name) with both banner and interstitial ads. What I'm trying to achieve is a steady ~60 frames per second with virtually no stutter or hiccups.
To disable the ads and their associated requests, I'm currently doing this:
adView.setVisibility(View.INVISIBLE);
adView.setEnabled(false);
adView.pause();
To re-enable them, I'm doing:
adView.setVisibility(View.VISIBLE);
adView.setEnabled(true);
adView.resume();
Is this correct? Am I missing anything? Do I have extraneous code?
Also, how would I know whether or not a banner ad is currently displaying an ad? I've noticed that after disabling the ads then re-enabling after ~3 min, the ad is no longer visible. Is it necessary to reload an ad instead of waiting for the refresh to kick in?
Thank you!! I'm sorry for inundating you guys with all of these questions simultaneously!