Optional Parameters
AdGem Unity SDK offers an API to store several optional user value fields such as age, gender, 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:
var metadata = new PlayerMetadata("playerID-123")
{
gender = PlayerMetadata.Gender.MALE,
age = Random.Range(12, 87),
placement = Random.Range(1, 1195),
createdAt = DateTime.Now,
isPayer = true,
iapTotalUsd = Random.Range(1.99f, 1267)
};
AdGem.SetPlayerMetaData(metadata);
Parameter | Type | Property | Description |
---|---|---|---|
player_id | string | id() |
For increased fraud protection, we require 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() |
Boolean value to set whether that player has made an in-app purchase or not |
player_iap_total_usd | integer | iapTotalUsd() |
If the player has made an in-app purchase, the total is set here |
player_created_at | timestamp | createdAt() |
Timestamp without the time zone |
player_level | integer | level() |
The level that the player has achieved |
placement | integer | placement() |
Integer value that represents player's placement/rank |
c1 | varchar | customField1() |
Custom field 1 |
c2 | varchar | customField2() |
Custom field 2 |
c3 | varchar | customField3() |
Custom field 3 |
c4 | varchar | customField4() |
Custom field 4 |
c5 | varchar | customField5() |
Custom field 5 |