Documentation

Did you find this helpful?

Getting a player's Value-to-Date (VTD)

Player Profiles now track the total amount spent by a player as both a total across all currencies converted to USD in the field totalValueToDateInUSD and a dictionary field named valuesToDate of currency, and total spent in that currency. Both totals are expressed in cents or centesimal.

Along with this are two new Segment predicates, TotalValueToDate ("Total value to date in USD" in the UI) and ValueToDate("Value to date" in UI).

Examples

  1. Create a segment of all players who have purchased more than 15 USD in any currency.

    segmentView1.png#asset:301

  2. Create a segment of all players who have spent more more than 15 USD in any currency or 15 Chinese Yuan.

    segmentView2.png#asset:302

Profile Details

The new profile model adds the following fields:

// JSON
{
	totalValueToDateInUSD: [nullable uint]
	valuesToDate: [Dictionary string, uint]
}

Example values

// JSON
{
	…
	totalValueToDateInUSD: 1700
	valuesToDate: [{ "USD", 1200 }, { "EUR", 320 }]
	…
}


Did you find this helpful?