I am working with AdMob in Android, and I am using both interstitial and banner ads. I want to hide interstitial ads, but it seems that there is not any suitable methods for hiding it.
Please help if you have any solutions.
Thanks in advance.
I am working with AdMob in Android, and I am using both interstitial and banner ads. I want to hide interstitial ads, but it seems that there is not any suitable methods for hiding it.
Please help if you have any solutions.
Thanks in advance.
Taking answer from here
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK));
As whenever you press on back button the interstitial ad is closed so firing the back button event will eventually close the interstitial ad. Rest depends on the requirement.
Note: This is not an official way of doing this. It is just and hack/workaround.
As this answer points
It is not possible to programmatically close an interstitial ad.
Hope this helps.