Skip to main content

Revenue Reporting (ReportRevenue) [Player Network SDK only]

[Player Network SDK only] Revenue reporting.

Supported Channels:

  • Adjust
  • Firebase

Supported Platforms

Supports Android, iOS platform.

Function Definition

void ReportRevenue(
string eventName,
Dictionary<string, string> paramsDic,
string currency,
string revenueValue,
string specificChannel = "",
string extraJson = "{}");

Input Parameters

ParametersTypeDescriptionNote
eventNameStringEvent Name
For the Adjust channel, you must provide the event token to track the event.
Requir ed
paramsDicDictionary<string, string>Parameters to Report in Key-Value Format
Not required for the Adjust channel; you can pass an empty dictionary.
Required
currencystringCurrency code for the revenue Currency CodeRequired
revenueValuestringRevenue value expressed in full currency units (149.99 = $149.99)
The minimum accepted value for this parameter is 0.001.
Required
specificChannelstringSpecify Channel
1. If no channel is specified, use an empty string.An empty string will default to reporting to the initialized channel, that is, the channel configured in ANALYTICS_REPORT_CHANNEL in INTLConfig.ini.For more information, see Access Guidelines
2. To report to a specific channel, enter the channel name, e.g., "Facebook".
3. To report to multiple channels, separate the channel names with commas, e.g., "Facebook,Firebase".
Optional
extraJsonstringExtended Parameters
Additional conditions for the Player Network SDK client. This parameter will not be reported to the specified channel.
Optional

Code Example

Dictionary<string, string> paramsDic = new Dictionary<string, string>();
// TODO: Add key-value pair
UnionAdapterAPI.GetReportService().ReportRevenue("h48sp8", paramsDic, "CNY", "88.88");