public interface

AppLovinTargetingData

com.applovin.sdk.AppLovinTargetingData

Class Overview

This interface defines a class that accepts available targeting data

Summary

Constants
char GENDER_FEMALE This constant represents female gender for setGender() method
char GENDER_MALE This constant represents male gender for setGender() method
Public Methods
abstract void clearData()
Clear all saved targeting data
abstract void putExtra(String key, String value)
Put an extra targeting parameter
abstract void setBirthYear(int birthYear)
Set the year of birth of current user.
abstract void setCarrier(String carrier)
Set carrier current device is on.
abstract void setCountry(String country)
Set a two-character ISO 3166-1 country code of the device.
abstract void setGender(char gender)
Set the gender of current user.
abstract void setInterests(String... interests)
Set interests for the user.
abstract void setKeywords(String... keywords)
Set keywords for the application.
abstract void setLanguage(String language)
Set the language of current user.
abstract void setLocation(Location location)
Set the location of current user.

Constants

public static final char GENDER_FEMALE

This constant represents female gender for setGender() method

Constant Value: 102 (0x00000066)

public static final char GENDER_MALE

This constant represents male gender for setGender() method

Constant Value: 109 (0x0000006d)

Public Methods

public abstract void clearData ()

Clear all saved targeting data

public abstract void putExtra (String key, String value)

Put an extra targeting parameter

Parameters
key Key of the parameter. Must not be null.
value Parameter value.

public abstract void setBirthYear (int birthYear)

Set the year of birth of current user.

Parameters
birthYear Birth year of the current user.

public abstract void setCarrier (String carrier)

Set carrier current device is on.

Parameters
carrier Carrier to use.

public abstract void setCountry (String country)

Set a two-character ISO 3166-1 country code of the device.

Parameters
country Device country code

public abstract void setGender (char gender)

Set the gender of current user. Use GENDER_MALE and GENDER_FEMALE constants of this class or pass 'm' or 'f' directly.

Parameters
gender Gender of the current user.

public abstract void setInterests (String... interests)

Set interests for the user.

Parameters
interests Interests for the current user.

public abstract void setKeywords (String... keywords)

Set keywords for the application.

Parameters
keywords Keywords about the current application

public abstract void setLanguage (String language)

Set the language of current user. Language is expressed as two-character ISO 639-1 language code.

Parameters
language Language of the current user.

public abstract void setLocation (Location location)

Set the location of current user.

Parameters
location Location of the current user.