AdRequest class

An AdRequest contains targeting information used to fetch an ad.

Constructors

AdRequest({int? age, String? contextQuery, List<String>? contextTags, String? gender, AdLocation? location, Map<String, String>? parameters, AdTheme? preferredTheme})
const

Properties

age int?
User's age.
final
contextQuery String?
Context query entered inside the app.
final
contextTags List<String>?
Context tags describing current user context inside the app.
final
gender String?
User's gender.
final
hashCode int
The hash code for this object.
no setterinherited
location AdLocation?
User's location.
final
parameters Map<String, String>?
Custom parameters for ad loading request.
final
preferredTheme AdTheme?
Preferred ad theme.
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.
inherited