AdRequest class

Targeting info per the AdMob API.

This class's properties mirror the native AdRequest API. See for example: AdRequest.Builder for Android.

Implementers

Constructors

AdRequest({List<String>? keywords, String? contentUrl, List<String>? neighboringContentUrls, bool? nonPersonalizedAds, int? httpTimeoutMillis, String? mediationExtrasIdentifier, Map<String, String>? extras})
Default constructor for AdRequest.
const

Properties

contentUrl String?
URL string for a webpage whose content matches the app’s primary content.
final
extras Map<String, String>?
Extras to pass to the AdMob adapter.
final
hashCode int
The hash code for this object.
no setterinherited
httpTimeoutMillis int?
A custom timeout for HTTPS calls during an ad request.
final
keywords List<String>?
Words or phrases describing the current user activity.
final
mediationExtrasIdentifier String?
String identifier used in providing mediation extras.
final
neighboringContentUrls List<String>?
URLs representing web content near an ad.
final
nonPersonalizedAds bool?
Non-personalized ads are ads that are not based on a user’s past behavior.
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override