Package com.adcolony.sdk
Class AdColonyUserMetadata
- java.lang.Object
-
- com.adcolony.sdk.AdColonyUserMetadata
-
@Deprecated public class AdColonyUserMetadata extends java.lang.ObjectDeprecated.An optional object to be passed via app or ad options.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringUSER_EDUCATION_ASSOCIATES_DEGREEDeprecated.static java.lang.StringUSER_EDUCATION_BACHELORS_DEGREEDeprecated.static java.lang.StringUSER_EDUCATION_GRADE_SCHOOLDeprecated.static java.lang.StringUSER_EDUCATION_GRADUATE_DEGREEDeprecated.static java.lang.StringUSER_EDUCATION_HIGH_SCHOOL_DIPLOMADeprecated.static java.lang.StringUSER_EDUCATION_SOME_COLLEGEDeprecated.static java.lang.StringUSER_EDUCATION_SOME_HIGH_SCHOOLDeprecated.static java.lang.StringUSER_FEMALEDeprecated.static java.lang.StringUSER_MALEDeprecated.static java.lang.StringUSER_MARRIEDDeprecated.static java.lang.StringUSER_SINGLEDeprecated.
-
Constructor Summary
Constructors Constructor Description AdColonyUserMetadata()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AdColonyUserMetadataaddUserInterest(java.lang.String interest)Deprecated.Used to add an arbitrary user interest.AdColonyUserMetadataclearUserInterests()Deprecated.Used to clear the current user's interests tied to this user metadata object.java.lang.ObjectgetMetadata(java.lang.String key)Deprecated.Used to retrieve an arbitrary option with the given key.intgetUserAge()Deprecated.Used to retrieve the user age as set in the user metadata.intgetUserAnnualHouseholdIncome()Deprecated.Used to retrieve the user's annual household income as set in the user metadata.java.lang.StringgetUserEducation()Deprecated.Used to retrieve the user's education as set in the user metadata.java.lang.StringgetUserGender()Deprecated.Used to retrieve the user gender set in the user metadata.java.lang.String[]getUserInterests()Deprecated.Used to retrieve the user's interests as set in the user metadata.LocationgetUserLocation()Deprecated.Used to retrieve the current user's location as set in the user metadata.java.lang.StringgetUserMaritalStatus()Deprecated.Used to retrieve the user's marital status as set in the user metadata.java.lang.StringgetUserZipCode()Deprecated.Used to retrieve the user's ZIP code as set in the user metadata.AdColonyUserMetadatasetMetadata(java.lang.String key, boolean value)Deprecated.Optionally set an arbitrary key/value definitionAdColonyUserMetadatasetMetadata(java.lang.String key, double value)Deprecated.Optionally set an arbitrary key/value definitionAdColonyUserMetadatasetMetadata(java.lang.String key, java.lang.String value)Deprecated.Optionally set an arbitrary key/value definitionAdColonyUserMetadatasetUserAge(int age)Deprecated.Used to set the current user's age.AdColonyUserMetadatasetUserAnnualHouseholdIncome(int income)Deprecated.Used to set the user's annual household income.AdColonyUserMetadatasetUserEducation(java.lang.String education)Deprecated.Used to set the user's education level.AdColonyUserMetadatasetUserGender(java.lang.String gender)Deprecated.Used to set the current user's gender.AdColonyUserMetadatasetUserLocation(Location location)Deprecated.Used to set the current user's location.AdColonyUserMetadatasetUserMaritalStatus(java.lang.String status)Deprecated.Used to set the current user's marital status.AdColonyUserMetadatasetUserZipCode(java.lang.String zip)Deprecated.Used to set the current user's ZIP code.
-
-
-
Field Detail
-
USER_MALE
public static final java.lang.String USER_MALE
Deprecated.- See Also:
- Constant Field Values
-
USER_FEMALE
public static final java.lang.String USER_FEMALE
Deprecated.- See Also:
- Constant Field Values
-
USER_SINGLE
public static final java.lang.String USER_SINGLE
Deprecated.- See Also:
- Constant Field Values
-
USER_MARRIED
public static final java.lang.String USER_MARRIED
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_GRADE_SCHOOL
public static final java.lang.String USER_EDUCATION_GRADE_SCHOOL
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_SOME_HIGH_SCHOOL
public static final java.lang.String USER_EDUCATION_SOME_HIGH_SCHOOL
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_HIGH_SCHOOL_DIPLOMA
public static final java.lang.String USER_EDUCATION_HIGH_SCHOOL_DIPLOMA
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_SOME_COLLEGE
public static final java.lang.String USER_EDUCATION_SOME_COLLEGE
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_ASSOCIATES_DEGREE
public static final java.lang.String USER_EDUCATION_ASSOCIATES_DEGREE
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_BACHELORS_DEGREE
public static final java.lang.String USER_EDUCATION_BACHELORS_DEGREE
Deprecated.- See Also:
- Constant Field Values
-
USER_EDUCATION_GRADUATE_DEGREE
public static final java.lang.String USER_EDUCATION_GRADUATE_DEGREE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setUserGender
public AdColonyUserMetadata setUserGender(java.lang.String gender)
Deprecated.Used to set the current user's gender.- Parameters:
gender- a constant representing the user's gender. Should be one of AdColonyUserMetadata.USER_MALE or AdColonyUserMetadata.USER_FEMALE.- Returns:
- 'this' for chaining calls.
-
getUserGender
public java.lang.String getUserGender()
Deprecated.Used to retrieve the user gender set in the user metadata.- Returns:
- one of AdColonyUserMetadata.USER_MALE or AdColonyUserMetadata.USER_FEMALE. Will return an empty String if the user's gender has not been set.
-
setUserAge
public AdColonyUserMetadata setUserAge(int age)
Deprecated.Used to set the current user's age.- Parameters:
age- the age of the current user.- Returns:
- 'this' for chaining calls.
-
getUserAge
public int getUserAge()
Deprecated.Used to retrieve the user age as set in the user metadata.- Returns:
- the user's age, or 0 if it has not been set.
-
setUserMaritalStatus
public AdColonyUserMetadata setUserMaritalStatus(java.lang.String status)
Deprecated.Used to set the current user's marital status.- Parameters:
status- the marital status of the current user. Should be one of AdColonyUserMetadata.USER_SINGLE or AdColonyUserMetadata.USER_MARRIED.- Returns:
- 'this' for chaining calls.
-
getUserMaritalStatus
public java.lang.String getUserMaritalStatus()
Deprecated.Used to retrieve the user's marital status as set in the user metadata.- Returns:
- one of the String constants representing the user's marital status, or an empty String if it has not yet been set.
-
setUserAnnualHouseholdIncome
public AdColonyUserMetadata setUserAnnualHouseholdIncome(int income)
Deprecated.Used to set the user's annual household income.- Parameters:
income- the current user's annual household income.- Returns:
- 'this' for chaining calls.
-
getUserAnnualHouseholdIncome
public int getUserAnnualHouseholdIncome()
Deprecated.Used to retrieve the user's annual household income as set in the user metadata.- Returns:
- the current user's annual household income, or 0 if it has not been set.
-
setUserEducation
public AdColonyUserMetadata setUserEducation(java.lang.String education)
Deprecated.Used to set the user's education level.- Parameters:
education- one of the String constants from AdColonyUserMetadata representing education level.- Returns:
- 'this' for chaining calls.
-
getUserEducation
public java.lang.String getUserEducation()
Deprecated.Used to retrieve the user's education as set in the user metadata.- Returns:
- a String constant representing the user's education level, or an empty String if it has not been set.
-
setUserZipCode
public AdColonyUserMetadata setUserZipCode(java.lang.String zip)
Deprecated.Used to set the current user's ZIP code.- Parameters:
zip- the current user's ZIP code.- Returns:
- 'this' for chaining calls.
-
getUserZipCode
public java.lang.String getUserZipCode()
Deprecated.Used to retrieve the user's ZIP code as set in the user metadata.- Returns:
- the user's zip code, or an empty String if it has not been set.
-
setUserLocation
public AdColonyUserMetadata setUserLocation(Location location)
Deprecated.Used to set the current user's location.- Parameters:
location- the location object usually generated by LocationManager.- Returns:
- 'this' for chaining calls.
-
getUserLocation
public Location getUserLocation()
Deprecated.Used to retrieve the current user's location as set in the user metadata.- Returns:
- the Location object representing the user's location, or null if it has not been set.
-
addUserInterest
public AdColonyUserMetadata addUserInterest(java.lang.String interest)
Deprecated.Used to add an arbitrary user interest.- Parameters:
interest- a String representing the user interest.- Returns:
- 'this' for chaining calls.
-
clearUserInterests
public AdColonyUserMetadata clearUserInterests()
Deprecated.Used to clear the current user's interests tied to this user metadata object.- Returns:
- 'this' for chaining calls.
-
getUserInterests
public java.lang.String[] getUserInterests()
Deprecated.Used to retrieve the user's interests as set in the user metadata.- Returns:
- a String array of the user's interests.
-
setMetadata
public AdColonyUserMetadata setMetadata(java.lang.String key, boolean value)
Deprecated.Optionally set an arbitrary key/value definition- Parameters:
key- the key for this option mapping.value- the value for this option mapping.- Returns:
- 'this' for chaining calls.
-
getMetadata
public java.lang.Object getMetadata(java.lang.String key)
Deprecated.Used to retrieve an arbitrary option with the given key.- Parameters:
key- the key of the option you wish to retrieve.- Returns:
- the value mapped to the provided key, or false if the mapping does not exist.
-
setMetadata
public AdColonyUserMetadata setMetadata(java.lang.String key, double value)
Deprecated.Optionally set an arbitrary key/value definition- Parameters:
key- the key for this option mapping.value- the value for this option mapping.- Returns:
- 'this' for chaining calls.
-
setMetadata
public AdColonyUserMetadata setMetadata(java.lang.String key, java.lang.String value)
Deprecated.Optionally set an arbitrary key/value definition- Parameters:
key- the key for ths option mapping.value- the value for this option mapping.- Returns:
- 'this' for chaining calls.
-
-