We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08013eb commit 460b4b2Copy full SHA for 460b4b2
lib/ads/admob_ad_provider.dart
@@ -108,7 +108,8 @@ class AdMobAdProvider implements AdProvider {
108
},
109
onAdFailedToLoad: (ad, error) {
110
_logger.severe('Native Ad failed to load: $error');
111
- ad.dispose();
+ // The ad object is automatically disposed by the SDK on failure.
112
+ // Calling dispose here can lead to race conditions and errors.
113
completer.complete(null);
114
115
onAdClicked: (ad) {
0 commit comments