com.sec.android.ad.targeting
Class UserProfile

java.lang.Object
  extended by com.sec.android.ad.targeting.UserProfile

public final class UserProfile
extends java.lang.Object

The UserProfile class is for setting the age, gender, interest keyword, and location of the application user.

Version:
v1.0.0

Field Summary
static java.lang.String FEMALE
           
static java.lang.String MALE
           
 
Constructor Summary
UserProfile()
          Sets UserProfile.
UserProfile(java.lang.String gender, int age, java.util.List<java.lang.String> interests)
          Sets UserProfile.
UserProfile(java.lang.String gender, int age, java.lang.String interest)
          Sets UserProfile.
 
Method Summary
 void setAge(int age)
          Sets the age of the application user.
 void setGender(java.lang.String gender)
          Sets the gender of the application user.
 void setInterests(java.util.List<java.lang.String> interests)
          Sets the interest keywords of the application user.
 void setInterests(java.lang.String interest)
          Sets the interest keywords of the application user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MALE

public static final java.lang.String MALE
See Also:
Constant Field Values

FEMALE

public static final java.lang.String FEMALE
See Also:
Constant Field Values
Constructor Detail

UserProfile

public UserProfile()
Sets UserProfile.


UserProfile

public UserProfile(java.lang.String gender,
                   int age,
                   java.lang.String interest)
Sets UserProfile.

Parameters:
gender - "m" for male and "f" for female
age - Age, range: 1 ~ 200
interest - keyword for the application user.

UserProfile

public UserProfile(java.lang.String gender,
                   int age,
                   java.util.List<java.lang.String> interests)
Sets UserProfile.

Parameters:
gender - "m" for male and "f" for female
age - Age, range: 1 ~ 200
interests - keyword for the application user.
Method Detail

setGender

public void setGender(java.lang.String gender)
Sets the gender of the application user.

Parameters:
gender - "m" for male and "f" for female

setAge

public void setAge(int age)
Sets the age of the application user.

Parameters:
age - age range: 1 ~ 200

setInterests

public void setInterests(java.lang.String interest)
Sets the interest keywords of the application user.

Parameters:
interest - interest keyword, more than one keyword can be added by calling this method multiple times.

setInterests

public void setInterests(java.util.List<java.lang.String> interests)
Sets the interest keywords of the application user.

Parameters:
interests - interest keyword, List, this is used to set multiple keywords at once.