AdUnitConfiguration.inArticleAdUnit constructor
AdUnitConfiguration.inArticleAdUnit({})
Creates a configuration object for an In-article 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.adLayout
: Customizes the layout of this ad unit. See: Customize your in-feed ad.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.inArticleAdUnit({
required String adSlot,
AdFormat? adFormat,
AdLayout adLayout = AdLayout.IN_ARTICLE,
bool isFullWidthResponsive = true,
bool isAdTest = kDebugMode,
}) : this._internal(
adSlot: adSlot,
adFormat: adFormat,
adLayout: adLayout,
isFullWidthResponsive: isFullWidthResponsive,
isAdTest: isAdTest);