Skip to content

Optional Parameters

AdGem Unity 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:

  AdGem.player_id = "a unique identifier";
  AdGem.player_age = 18;
  AdGem.player_gender = AdGem.Gender.Female;
  AdGem.player_payer = false;
  AdGem.player_iap_total_usd = 0;
  AdGem.player_created_at = "date value";
  AdGem.player_level = 7;
  AdGem.placement = 2;
  AdGem.c1 = "your custom value 1";
  AdGem.c2 = "your custom value 2";
  AdGem.c3 = "your custom value 3";
  AdGem.c4 = "your custom value 4";
  AdGem.c5 = "your custom value 5";

Parameter Type Property Description
player_id string AdGem.player_id For increased fraud protection, we highly recommend you set the player_id.
User’s unique ID on your system
player_age integer AdGem.player_age User’s age
player_gender AdGemGender AdGem.player_gender User’s gender
player_payer boolean AdGem.player_payer Boolean value to set whether that player has made an in-app purchase or not
player_iap_total_usd integer AdGem.player_iap_total_usd If the player has made an in-app purchase, the total is set here
player_created_at timestamp AdGem.player_created_at Timestamp without the time zone
player_level integer AdGem.player_level The level that the player has achieved
placement integer AdGem.placement Integer value that represents
c1 varchar AdGem.c1 Custom field 1
c2 varchar AdGem.c2 Custom field 2
c3 varchar AdGem.c3 Custom field 3
c4 varchar AdGem.c4 Custom field 4
c5 varchar AdGem.c5 Custom field 5
Back to top