AdRequest class
Targeting and configuration parameters for an ad request.
Upgraded for Google Mobile Ads (GMA) Next-Gen SDK compatibility while
maintaining 100% backward compatibility with legacy AdRequest calls.
- Implementers
- Annotations
Constructors
-
AdRequest({List<
String> ? keywords, String? contentUrl, List<String> ? neighboringContentUrls, bool? nonPersonalizedAds, int? httpTimeoutMillis, String? mediationExtrasIdentifier, Map<String, String> ? extras, List<MediationExtras> ? mediationExtras, String? adUnitId, String? placementId, Map<String, String> ? customTargeting, String? adString}) -
const
Properties
- adString → String?
-
Next-Gen SDK: Optional RTB / Server-to-Server (S2S) ad response string.
final
- adUnitId → String?
-
Next-Gen SDK: Optional Ad Unit ID bound directly to the request.
final
- contentUrl → String?
-
final
-
customTargeting
→ Map<
String, String> ? -
Next-Gen SDK: Key-value custom targeting parameters.
final
-
extras
→ Map<
String, String> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpTimeoutMillis → int?
-
final
- isDefault → bool
-
Returns
trueif this request has no custom targeting parameters.no setter -
keywords
→ List<
String> ? -
final
-
mediationExtras
→ List<
MediationExtras> ? -
final
- mediationExtrasIdentifier → String?
-
final
-
neighboringContentUrls
→ List<
String> ? -
final
- nonPersonalizedAds → bool?
-
final
- placementId → String?
-
Next-Gen SDK: Optional placement identifier for analytics & reporting.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited