AdsConfig constructor
const
AdsConfig({
- PlatformAdIds? directInterstitialIds,
- bool directInterstitialEnabled = true,
- PlatformAdIds? bannerIds,
- PlatformAdIds? interstitialIds,
- PlatformAdIds? nativeIds,
- PlatformAdIds? appOpenIds,
- PlatformAdIds? rewardedIds,
- bool bannerEnabled = true,
- bool interstitialEnabled = true,
- bool nativeEnabled = false,
- bool appOpenEnabled = true,
- bool rewardedEnabled = true,
- bool adsEnabled = true,
- int interstitialAfter = 2,
- int maxRetryAttempts = 2,
- Duration retryBaseDelay = const Duration(seconds: 10),
- bool preloadEnabled = true,
- Duration connectivityRecheckInterval = const Duration(minutes: 3),
Implementation
const AdsConfig({
this.directInterstitialIds,
this.directInterstitialEnabled = true,
this.bannerIds,
this.interstitialIds,
this.nativeIds,
this.appOpenIds,
this.rewardedIds,
this.bannerEnabled = true,
this.interstitialEnabled = true,
this.nativeEnabled = false,
this.appOpenEnabled = true,
this.rewardedEnabled = true,
this.adsEnabled = true,
this.interstitialAfter = 2,
this.maxRetryAttempts = 2,
this.retryBaseDelay = const Duration(seconds: 10),
this.preloadEnabled = true,
this.connectivityRecheckInterval = const Duration(minutes: 3),
});