TargetingOptions class abstract

Constructors

TargetingOptions.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAge() Future<int>
The user’s age
getContentUrl() Future<String?>
Sets the content URL for a web site whose content matches the app's primary content. This web site content is used for targeting and brand safety purposes.
getGender() Future<Gender>
Set targeting to user’s gender
getKeywords() Future<Set<String>?>
A list of keywords, interests, or intents related to your application. Words or phrase describing the current activity of the user for targeting purposes.
getLocationLatitude() Future<double?>
The user's current location. Location data is not used to CAS; however, it may be used by 3rd party ad networks. Do not use Location just for advertising. Your app should have a valid use case for it as well.
getLocationLongitude() Future<double?>
See getLocationLatitude
isLocationCollectionEnabled() Future<bool>
Collect from the device the latitude and longitude coordinated truncated to the hundredths decimal place. Collect only if your application already has the relevant end-user permissions. Does not collect if the target audience is children.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAge(int age) Future<void>
See getAge
setContentUrl(String? contentUrl) Future<void>
See getAge
setGender(Gender gender) Future<void>
See getGender
setKeywords(Set<String>? keywords) Future<void>
See getKeywords
setLocationCollectionEnabled(bool isEnabled) Future<void>
See isLocationCollectionEnabled
setLocationLatitude(double latitude) Future<void>
See getLocationLatitude
setLocationLongitude(double longitude) Future<void>
See getLocationLatitude
toString() String
A string representation of this object.
inherited

Operators

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