AdUnitConfiguration.displayAdUnit constructor
AdUnitConfiguration.displayAdUnit({})
Creates a configuration object for a Display ad.
Arguments:
adSlot
: Identifies a specific ad unit from the AdSense console.adFormat
: (Desktop only) Specifies a general shape (horizontal, vertical, and/or rectangle) that this ad unit should conform to. To learn more, check: How to use responsive ad tag parameters.isFullWidthResponsive
: Determines whether this responsive ad unit expands to use the full width of a visitor's mobile device screen. See: How to use responsive ad tag parameters.isAdTest
: Whether this ad will be shown in a test environment. Defaults totrue
in debug mode.
Implementation
AdUnitConfiguration.displayAdUnit({
required String adSlot,
AdFormat? adFormat,
bool isFullWidthResponsive = true,
bool isAdTest = kDebugMode,
}) : this._internal(
adSlot: adSlot,
adFormat: adFormat,
isFullWidthResponsive: isFullWidthResponsive,
isAdTest: isAdTest);