Closed kohry closed 3 years ago
Actually that's quite normal :
You should do something like (as per ex https://codelabs.developers.google.com/codelabs/admob-inline-ads-in-flutter#6):
onAdLoaded: (_) {
setState(() {
_isAdLoaded = true;
});
},
Regards
As @bounty1342 stated, this is working as intended. Ad.show
should only be called after AdListener.onAdLoaded
is called as explained here https://pub.dev/packages/google_mobile_ads#display-an-interstitial-ad
Bug report
Describe the bug the return value of ad.load() is Future, but it does not do anything.
Steps to reproduce
Steps to reproduce the behavior:
ad.load().whenComplete((){ ad.show() })
and you will see 99% of Ads will not be properly loaded before showing
Expected behavior
It should be return false if Ad failed to load the ad, and true if ad is loaded