BannerAdRequest class
Next-Gen SDK format-specific request for Banner Ads (Standard, Adaptive, Collapsible).
Constructors
-
BannerAdRequest({String? adUnitId, AdSize? size, List<
AdSize> ? sizes, String? collapsiblePlacement, List<String> ? keywords, String? contentUrl, List<String> ? neighboringContentUrls, bool? nonPersonalizedAds, int? httpTimeoutMillis, String? mediationExtrasIdentifier, Map<String, String> ? extras, List<MediationExtras> ? mediationExtras, String? placementId, Map<String, String> ? customTargeting, String? adString}) -
const
Properties
- adString → String?
-
Next-Gen SDK: Optional RTB / Server-to-Server (S2S) ad response string.
finalinherited
- adUnitId → String?
-
Next-Gen SDK: Optional Ad Unit ID bound directly to the request.
finalinherited
- collapsiblePlacement → String?
-
Collapsible banner placement (
"top"or"bottom"), if collapsible.final - contentUrl → String?
-
finalinherited
-
customTargeting
→ Map<
String, String> ? -
Next-Gen SDK: Key-value custom targeting parameters.
finalinherited
-
extras
→ Map<
String, String> ? -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpTimeoutMillis → int?
-
finalinherited
- isDefault → bool
-
Returns
trueif this request has no custom targeting parameters.no setteroverride -
keywords
→ List<
String> ? -
finalinherited
-
mediationExtras
→ List<
MediationExtras> ? -
finalinherited
- mediationExtrasIdentifier → String?
-
finalinherited
-
neighboringContentUrls
→ List<
String> ? -
finalinherited
- nonPersonalizedAds → bool?
-
finalinherited
- placementId → String?
-
Next-Gen SDK: Optional placement identifier for analytics & reporting.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → AdSize?
-
Primary banner size for the Next-Gen request.
final
-
sizes
→ List<
AdSize> ? -
Additional banner sizes supported by the placement.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited