Package com.my.target.common
Class CustomParams
-
- All Implemented Interfaces:
public final class CustomParamsAllows you to refine your ad request by adding information about the app user
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCustomParams.GenderConstants for gender
-
Constructor Summary
Constructors Constructor Description CustomParams()
-
Method Summary
Modifier and Type Method Description intgetAge()StringgetCustomParam(@NonNull() String key)Custom param, set with CustomParams. StringgetCustomUserId()Array<String>getCustomUserIds()StringgetEmail()Array<String>getEmails()intgetGender()StringgetIcqId()Array<String>getIcqIds()StringgetLang()StringgetMrgsAppId()StringgetMrgsId()StringgetMrgsUserId()StringgetOkId()Array<String>getOkIds()StringgetVKId()Array<String>getVKIds()voidputCustomDataToMap(@NonNull() Map<String, String> destination)voidputDataTo(@NonNull() Map<String, String> destination)MyTarget SDK internal method. voidsetAge(int age)sets information about user age voidsetCustomParam(@NonNull() String key, @Nullable() String value)Custom key-value param will be added to the Ad request voidsetCustomUserId(@Nullable() String id)voidsetCustomUserIds(@Nullable() Array<String> ids)voidsetEmail(@Nullable() String email)voidsetEmails(@Nullable() Array<String> emails)voidsetGender(int gender)Sets user gender info to SDK voidsetIcqId(@Nullable() String id)voidsetIcqIds(@Nullable() Array<String> ids)voidsetLang(@Nullable() String lang)Sets if user has custom language voidsetMrgsAppId(@Nullable() String appId)voidsetMrgsId(@Nullable() String mrgsId)voidsetMrgsUserId(@Nullable() String userId)voidsetOkId(@Nullable() String id)voidsetOkIds(@Nullable() Array<String> ids)voidsetVKId(@Nullable() String id)voidsetVKIds(@Nullable() Array<String> ids)-
-
Method Detail
-
getAge
int getAge()
- Returns:
user age, if set
-
getCustomParam
@Nullable() String getCustomParam(@NonNull() String key)
Custom param, set with CustomParams.addParam(String, String). If no such param returns null
- Parameters:
key- param key- Returns:
param value
-
getCustomUserId
@Nullable() String getCustomUserId()
- Returns:
custom user ID, if set
-
getCustomUserIds
@Nullable() Array<String> getCustomUserIds()
- Returns:
an array of custom user IDs if set
-
getGender
int getGender()
- Returns:
user gender if set
-
getMrgsAppId
@Nullable() String getMrgsAppId()
-
getMrgsUserId
@Nullable() String getMrgsUserId()
-
putCustomDataToMap
void putCustomDataToMap(@NonNull() Map<String, String> destination)
- Parameters:
destination- is a map where custom parameters will be added
-
putDataTo
void putDataTo(@NonNull() Map<String, String> destination)
MyTarget SDK internal method. Please, don't use it.
-
setAge
void setAge(int age)
sets information about user age
- Parameters:
age- age in years
-
setCustomParam
void setCustomParam(@NonNull() String key, @Nullable() String value)
Custom key-value param will be added to the Ad request
- Parameters:
key- param keyvalue- param value
-
setCustomUserId
void setCustomUserId(@Nullable() String id)
- Parameters:
id- custom user ID
-
setCustomUserIds
void setCustomUserIds(@Nullable() Array<String> ids)
- Parameters:
ids- an array of custom user IDs
-
setEmails
void setEmails(@Nullable() Array<String> emails)
- Parameters:
emails- an array if user emails
-
setGender
void setGender(int gender)
Sets user gender info to SDK
- Parameters:
gender- gender constant.
-
setLang
void setLang(@Nullable() String lang)
Sets if user has custom language
- Parameters:
lang- custom language name
-
setMrgsAppId
void setMrgsAppId(@Nullable() String appId)
-
setMrgsUserId
void setMrgsUserId(@Nullable() String userId)
-
-
-
-