AdRequest class

Targeting info per the AdMob API.

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

Constructors

AdRequest({List<String>? keywords, String? contentUrl, List<String>? testDevices, bool? nonPersonalizedAds})
Default constructor for AdRequest.
const

Properties

contentUrl String?
URL string for a webpage whose content matches the app’s primary content.
final
hashCode int
The hash code for this object.
no setterinherited
keywords List<String>?
Words or phrases describing the current user activity.
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
testDevices List<String>?
Causes a device to receive test ads.
final

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