Skip to main content

ReportRevenue

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ReportRevenue for Unreal Engine SDK.

Reports revenue event.

Supported channels:

  • Adjust
  • Firebase
  • AppsFlyer
  • Facebook

Function definition

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

Input parameters

ParameterTypeDescriptionRemark
eventNamestringEvent name
Adjust requires the event token to track the event.
Required
paramsDicDictionary<string, string>Parameters to be reported in key-value form.
Not required for Adjust, pass an empty library.
Required
currencystringRevenue currency codeRequired
revenueValuestringRevenue value in full currency units (149.99 = $149.99)
The minimum value for this parameter is 0.001.
Required
specificChannelstringThe specified channel to report.
1. For no specified channel, input an empty string. The event is reported to default channels ANALYTICS_REPORT_CHANNEL configured in INTLConfig.ini. For more information, see Integration Guide.
2. For one specified channel, input the channel such as "Facebook".
3. For multiple specified channels, separate them with commas “,” such as "Facebook,Firebase".
Optional
extraJsonstringThe extended field
The additional condition used by Player Network SDK which is not reported to the specified channels.
Optional

Code sample

Dictionary<string, string> paramsDic = new Dictionary<string, string>();
INTLAPI.ReportRevenue("h48sp8", params, "CNY", "88.88");