Millennial Media Android Ad SDK Public Documentation  6.6.1
Classes | Public Member Functions | List of all members
UserData Class Reference

Classes

enum  Education
 
enum  Ethnicity
 
enum  Gender
 
enum  Marital
 
enum  Politics
 

Public Member Functions

 UserData ()
 
UserData setAge (int age)
 
Integer getAge ()
 
UserData setChildren (int children)
 
Integer getChildren ()
 
UserData setEducation (Education education)
 
String getEducation ()
 
UserData setEthnicity (Ethnicity ethnicity)
 
String getEthnicity ()
 
UserData setGender (Gender gender)
 
String getGender ()
 
UserData setIncome (int income)
 
Integer getIncome ()
 
UserData setKeywords (String keywords)
 
String getKeywords ()
 
UserData setMarital (Marital marital)
 
String getMarital ()
 
UserData setPolitics (Politics politics)
 
String getPolitics ()
 
UserData setPostalCode (String postalCode)
 
String getPostalCode ()
 
UserData setDob (Date dob)
 
Date getDob ()
 
UserData setState (String state)
 
String getState ()
 
UserData setCountry (String country)
 
String getCountry ()
 
UserData setDma (String dma)
 
String getDma ()
 

Detailed Description

Represents information about the user that can be passed along with an ad request to improve ad targeting.

Constructor & Destructor Documentation

◆ UserData()

UserData ( )

Creates a new UserData object.

Member Function Documentation

◆ getAge()

Integer getAge ( )

Gets the age of the user.

◆ getChildren()

Integer getChildren ( )

Gets the number of children the user has.

◆ getCountry()

String getCountry ( )

Gets the country of the user

◆ getDma()

String getDma ( )

Gets the dma of the user

◆ getDob()

Date getDob ( )

Gets the date of birth of the user

◆ getEducation()

String getEducation ( )

Gets the education level of the user.

◆ getEthnicity()

String getEthnicity ( )

Gets the ethnicity of the user.

◆ getGender()

String getGender ( )

Gets the gender of the user.

◆ getIncome()

Integer getIncome ( )

Gets the income level of the user.

◆ getKeywords()

String getKeywords ( )

Gets various keywords to associate with the user.

◆ getMarital()

String getMarital ( )

Gets the marital status of the user.

◆ getPolitics()

String getPolitics ( )

Gets the political stance of the user.

◆ getPostalCode()

String getPostalCode ( )

Gets the zip code of the user.

◆ getState()

String getState ( )

Gets the state of the user

◆ setAge()

UserData setAge ( int  age)

Sets the age of the user. The age must be greater than or equal to 0.

Parameters
ageage in years
Returns
UserData

◆ setChildren()

UserData setChildren ( int  children)

Sets the number of children the user has. The number of children must be greater than or equal to 0.

Parameters
childrennumber of children
Returns
UserData

◆ setCountry()

UserData setCountry ( String  country)

Sets the country of the user

Parameters
countrycountry
Returns
UserData

◆ setDma()

UserData setDma ( String  dma)

Sets the dma of the user

Parameters
dmadma
Returns
UserData

◆ setDob()

UserData setDob ( Date  dob)

Sets the date of birth of the user

Parameters
dobdate of birth
Returns
UserData

◆ setEducation()

UserData setEducation ( Education  education)

Sets the education level of the user.

Parameters
educationeducation level represented by Education
Returns
UserData

◆ setEthnicity()

UserData setEthnicity ( Ethnicity  ethnicity)

Sets the ethnicity of the user.

Parameters
ethnicityuser's ethnicity represented by Ethnicity
Returns
UserData

◆ setGender()

UserData setGender ( Gender  gender)

Sets the gender of the user.

Parameters
genderuser's gender represented by Gender
Returns
UserData

◆ setIncome()

UserData setIncome ( int  income)

Sets the income level of the user.

Parameters
incomeincome of the user
Returns
UserData

◆ setKeywords()

UserData setKeywords ( String  keywords)

Sets various keywords to associate with the user.

Parameters
keywordscomma delimited list of keywords
Returns
UserData

◆ setMarital()

UserData setMarital ( Marital  marital)

Sets the marital status of the user.

Parameters
maritaluser's marital status represented by Marital
Returns
UserData

◆ setPolitics()

UserData setPolitics ( Politics  politics)

Sets the political stance of the user.

Parameters
politicsuser's political stance represented by Politics
Returns
UserData

◆ setPostalCode()

UserData setPostalCode ( String  postalCode)

Sets the postal code of the user.

Parameters
postalCodeuser's postal code
Returns
UserData

◆ setState()

UserData setState ( String  state)

Sets the state of the user

Parameters
statestate
Returns
UserData