Package com.my.target.common
Class CustomParams
java.lang.Object
com.my.target.common.CustomParams
Allows you to refine your ad request by adding information about the app user
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAge()getCustomParam(String key) Custom param, set withaddParam(String, String).String[]getEmail()String[]intgetIcqId()String[]getLang()getOkId()String[]getOkIds()getVKId()String[]getVKIds()voidputCustomDataToMap(Map<String, String> destination) voidMyTarget SDK internal method.voidsetAge(int age) sets information about user agevoidsetCustomParam(String key, String value) Custom key-value param will be added to the Ad requestvoidvoidsetCustomUserIds(String[] ids) voidvoidvoidsetGender(int gender) Sets user gender info to SDKvoidvoidvoidSets if user has custom languagevoidsetMrgsAppId(String appId) voidvoidsetMrgsUserId(String userId) voidvoidvoidvoid
-
Constructor Details
-
CustomParams
public CustomParams()
-
-
Method Details
-
getMrgsAppId
-
setMrgsAppId
-
getMrgsUserId
-
setMrgsUserId
-
getMrgsId
-
setMrgsId
-
getEmail
- Returns:
- user email address, if set
-
setEmail
- Parameters:
email- user email address
-
getEmails
- Returns:
- an array if user emails, if set
-
setEmails
- Parameters:
emails- an array if user emails
-
getIcqId
- Returns:
- user ICQ id, if set
-
setIcqId
- Parameters:
id- user ICQ id
-
getIcqIds
- Returns:
- an array of user ICQ ids
-
setIcqIds
- Parameters:
ids- an array of user ICQ ids
-
getOkId
- Returns:
- user ok.ru id, if set
-
setOkId
- Parameters:
id- user ok.ru id
-
getOkIds
- Returns:
- an array of user ok.ru ids, if set
-
setOkIds
- Parameters:
ids- an array of user ok.ru ids
-
getVKId
- Returns:
- user vk.com id, if set
-
setVKId
- Parameters:
id- user vk.com id
-
getVKIds
- Returns:
- an array of user vk.com id, if set
-
setVKIds
- Parameters:
ids- an array of user vk.com id
-
getLang
- Returns:
- user custom language if set
-
setLang
Sets if user has custom language- Parameters:
lang- custom language name
-
getGender
public int getGender()- Returns:
- user gender if set
- See Also:
-
setGender
public void setGender(int gender) Sets user gender info to SDK- Parameters:
gender- gender constant.- See Also:
-
getAge
public int getAge()- Returns:
- user age, if set
-
setAge
public void setAge(int age) sets information about user age- Parameters:
age- age in years
-
getCustomUserId
- Returns:
- custom user ID, if set
-
setCustomUserId
- Parameters:
id- custom user ID
-
getCustomUserIds
- Returns:
- an array of custom user IDs if set
-
setCustomUserIds
- Parameters:
ids- an array of custom user IDs
-
setCustomParam
Custom key-value param will be added to the Ad request- Parameters:
key- param keyvalue- param value
-
getCustomParam
Custom param, set withaddParam(String, String). If no such param returns null- Parameters:
key- param key- Returns:
- param value
-
putCustomDataToMap
- Parameters:
destination- is a map where custom parameters will be added
-
putDataTo
MyTarget SDK internal method. Please, don't use it.
-