RequestConfiguration class

Global configuration applied to every ad request.

Mirrors the GMA RequestConfiguration. Apply it once with MobileAds.setRequestConfiguration.

Annotations

Constructors

RequestConfiguration({List<String>? testDeviceIds, MaxAdContentRating? maxAdContentRating, AgeRestrictedTreatment? ageRestrictedTreatment, @Deprecated('Use ageRestrictedTreatment instead') TagForChildDirectedTreatment? tagForChildDirectedTreatment, @Deprecated('Use ageRestrictedTreatment instead') TagForUnderAgeOfConsent? tagForUnderAgeOfConsent})
Creates a RequestConfiguration.
const

Properties

ageRestrictedTreatment → AgeRestrictedTreatment?
Age-restricted treatment for ad requests (child / teen / unspecified).
final
hashCode → int
The hash code for this object.
no setterinherited
maxAdContentRating → MaxAdContentRating?
Maximum content rating for served ads.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tagForChildDirectedTreatment → TagForChildDirectedTreatment?
COPPA child-directed treatment tag.
final
tagForUnderAgeOfConsent → TagForUnderAgeOfConsent?
Under-age-of-consent tag.
final
testDeviceIds → List<String>?
Devices that should always be served test ads.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Serializes this configuration into a channel-friendly map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited