Skip to content

Optional Parameters

AdGem iOS SDK offers an API to store several optional user value fields such as age, gender, player ID, etc. These values can then be retrieved again on each conversion postback and/or used to segment your audiences and optimize your mobile ad revenue earnings.


Example:

PlayerMetadata player = new PlayerMetadata.Builder()
  .id("abc123")
  .age(23)
  .iapTotalUsd(10)
  .level(4)
  .placement(2)
  .isPayer(true)
  .gender(PlayerMetadata.Gender.FEMALE)
  .createdAt("2018-11-16 06:23:19.07")
  .customFields("custom item 1", "custom item 2", "custom item 3", "custom item 4", "custom item 5")
  .build();

adgem.setPlayerMetaData(player);


Parameter Type Property Description
player_id string id() For increased fraud protection, we highly recommend you set the player_id.
User’s unique ID on your system
player_age integer age() User’s age
player_gender PlayerMetadata.Gender gender() User’s gender
player_payer boolean isPayer()
player_iap_total_usd integer iapTotalUsd()
player_created_at timestamp createdAt() Timestamp without the time zone
player_level integer level() The level that the player has achieved
placement integer placement()
c1 varchar customFields("c1", "c2", "c3", "c4", "c5") Custom field 1
c2 varchar customFields("c1", "c2", "c3", "c4", "c5") Custom field 2
c3 varchar customFields("c1", "c2", "c3", "c4", "c5") Custom field 3
c4 varchar customFields("c1", "c2", "c3", "c4", "c5") Custom field 4
c5 varchar customFields("c1", "c2", "c3", "c4", "c5") Custom field 5
Back to top