File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ class AdMobAdProvider implements AdProvider {
2424 final Logger _logger;
2525 final Uuid _uuid = const Uuid ();
2626
27+ static const _nativeAdLoadTimeout = 15 ;
28+
2729 /// The AdMob Native Ad Unit ID for Android.
2830 ///
2931 /// This should be replaced with your production Ad Unit ID.
@@ -123,7 +125,7 @@ class AdMobAdProvider implements AdProvider {
123125
124126 // Add a timeout to the future to prevent hanging if callbacks are not called.
125127 final googleNativeAd = await completer.future.timeout (
126- const Duration (seconds: 15 ),
128+ const Duration (seconds: _nativeAdLoadTimeout ),
127129 onTimeout: () {
128130 _logger.warning ('Native ad loading timed out.' );
129131 ad.dispose (); // Dispose the ad if it timed out
You can’t perform that action at this time.
0 commit comments