2using GoogleMobileAds.Api;
32 [Tooltip(
"Enables or disables the collapsible banner. When set to true, the banner can be expanded or collapsed based on user interaction or other conditions.\n" +
33 "This is applicable only for banners of type Top or Bottom.")]
37 [Editor.ShowIf(nameof(
Enabled))]
44 [Tooltip(
"Indicates whether the ads refreshing behavior is enabled for the collapsible banner.")]
55 position = adPosition
switch
57 AdPosition.Top =>
"top",
58 AdPosition.Bottom =>
"bottom",
60 AdPosition.TopRight or
61 AdPosition.BottomLeft or
62 AdPosition.BottomRight or
63 AdPosition.Center =>
null,
64 _ =>
throw new ArgumentOutOfRangeException(nameof(adPosition), adPosition,
null)
66 return position !=
null;
77 public (
string Key,
string Value) GetRefreshableExtra() =>
bool IsCollapsibleBannerTypeAvailable(AdPosition adPosition, out string position)
Determines if a specific ad position supports being collapsible and returns the position as a string ...
bool AdsRefreshingBehaviourEnabled
Indicates whether the ads refreshing behavior is enabled for the collapsible banner....
bool Enabled
Enables or disables the collapsible banner. When set to true, the banner can be expanded or collapsed...
const string CollapsibleRefreshExtraKey
Represents the key used for identifying a unique request ID for refreshable collapsible banner ads....
const string CollapsibleExtraKey
Defines the key for specifying the alignment of an expanded ad relative to the collapsible banner....
Defines the properties and behavior of a collapsible banner.