Class CustomParams

java.lang.Object
com.my.target.common.CustomParams

public final class CustomParams extends Object
Allows you to refine your ad request by adding information about the app user
  • Constructor Details

    • CustomParams

      public CustomParams()
  • Method Details

    • getMrgsAppId

      @Nullable public String getMrgsAppId()
    • setMrgsAppId

      public void setMrgsAppId(@Nullable String appId)
    • getMrgsUserId

      @Nullable public String getMrgsUserId()
    • setMrgsUserId

      public void setMrgsUserId(@Nullable String userId)
    • getMrgsId

      @Nullable public String getMrgsId()
    • setMrgsId

      public void setMrgsId(@Nullable String mrgsId)
    • getEmail

      @Nullable public String getEmail()
      Returns:
      user email address, if set
    • setEmail

      public void setEmail(@Nullable String email)
      Parameters:
      email - user email address
    • getEmails

      @Nullable public String[] getEmails()
      Returns:
      an array if user emails, if set
    • setEmails

      public void setEmails(@Nullable String[] emails)
      Parameters:
      emails - an array if user emails
    • getIcqId

      @Nullable public String getIcqId()
      Returns:
      user ICQ id, if set
    • setIcqId

      public void setIcqId(@Nullable String id)
      Parameters:
      id - user ICQ id
    • getIcqIds

      @Nullable public String[] getIcqIds()
      Returns:
      an array of user ICQ ids
    • setIcqIds

      public void setIcqIds(@Nullable String[] ids)
      Parameters:
      ids - an array of user ICQ ids
    • getOkId

      @Nullable public String getOkId()
      Returns:
      user ok.ru id, if set
    • setOkId

      public void setOkId(@Nullable String id)
      Parameters:
      id - user ok.ru id
    • getOkIds

      @Nullable public String[] getOkIds()
      Returns:
      an array of user ok.ru ids, if set
    • setOkIds

      public void setOkIds(@Nullable String[] ids)
      Parameters:
      ids - an array of user ok.ru ids
    • getVKId

      @Nullable public String getVKId()
      Returns:
      user vk.com id, if set
    • setVKId

      public void setVKId(@Nullable String id)
      Parameters:
      id - user vk.com id
    • getVKIds

      @Nullable public String[] getVKIds()
      Returns:
      an array of user vk.com id, if set
    • setVKIds

      public void setVKIds(@Nullable String[] ids)
      Parameters:
      ids - an array of user vk.com id
    • getLang

      @Nullable public String getLang()
      Returns:
      user custom language if set
    • setLang

      public void setLang(@Nullable String lang)
      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

      @Nullable public String getCustomUserId()
      Returns:
      custom user ID, if set
    • setCustomUserId

      public void setCustomUserId(@Nullable String id)
      Parameters:
      id - custom user ID
    • getCustomUserIds

      @Nullable public String[] getCustomUserIds()
      Returns:
      an array of custom user IDs if set
    • setCustomUserIds

      public void setCustomUserIds(@Nullable String[] ids)
      Parameters:
      ids - an array of custom user IDs
    • setCustomParam

      public void setCustomParam(@NonNull String key, @Nullable String value)
      Custom key-value param will be added to the Ad request
      Parameters:
      key - param key
      value - param value
    • getCustomParam

      @Nullable public String getCustomParam(@NonNull String key)
      Custom param, set with addParam(String, String). If no such param returns null
      Parameters:
      key - param key
      Returns:
      param value
    • putCustomDataToMap

      public void putCustomDataToMap(@NonNull Map<String,String> destination)
      Parameters:
      destination - is a map where custom parameters will be added
    • putDataTo

      public void putDataTo(@NonNull Map<String,String> destination)
      MyTarget SDK internal method. Please, don't use it.