Closed dhwalin closed 4 years ago
You should put addListener
before prepareInterstitial
Please check demo: https://github.com/capacitor-community/admob/blob/master/demo/angular/src/app/home/home.page.ts
This is not plugin issue.
If it is not plugin issue then why following scenario is appearing? Please have a look. Reward video is working absolutely fine. But ad was not ready error in Interstitial.
Working Code of Reward Video:
AdMob.prepareRewardVideoAd(optionsInter).then((info) => {
if(info.value)
{
AdMob.showRewardVideoAd();
}
});
Ad wasn't ready error with same code in Interstitial
AdMob.prepareInterstitial(optionsInter).then((info) => {
if(info.value)
{
AdMob.showInterstitial();
}
});
Please let me know what am I missing. AdMob.showInterstitial()
never show interstitial. Below is my code.