AdUnitConfiguration.inFeedAdUnit constructor
AdUnitConfiguration.inFeedAdUnit({})
Creates a configuration object for an In-feed ad.
Arguments:
adSlot
: Identifies a specific ad unit from the AdSense console.adLayoutKey
: The key identifying the layout for this ad unit.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.inFeedAdUnit({
required String adSlot,
required String adLayoutKey,
AdFormat? adFormat,
bool isFullWidthResponsive = true,
bool isAdTest = kDebugMode,
}) : this._internal(
adSlot: adSlot,
adFormat: adFormat,
adLayoutKey: adLayoutKey,
isFullWidthResponsive: isFullWidthResponsive,
isAdTest: isAdTest);