AdConfig constructor

const AdConfig({
  1. required AdUnitId bannerId,
  2. AdUnitId? interstitialId,
  3. AdUnitId? rewardedId,
  4. AdUnitId? appOpenId,
  5. List<String> testDeviceIds = const [],
  6. int frequencyCapSeconds = 60,
  7. int maxRetryCount = 3,
  8. int retryBaseDelayMs = 1000,
  9. int loadTimeoutSeconds = 30,
  10. bool skipColdStartAppOpen = true,
})

Creates an ad configuration.

bannerId is required. All other ad unit IDs are optional; passing null disables that ad format.

Implementation

const AdConfig({
  required this.bannerId,
  this.interstitialId,
  this.rewardedId,
  this.appOpenId,
  this.testDeviceIds = const [],
  this.frequencyCapSeconds = 60,
  this.maxRetryCount = 3,
  this.retryBaseDelayMs = 1000,
  this.loadTimeoutSeconds = 30,
  this.skipColdStartAppOpen = true,
});