Skip to main content

Report Revenue

AndroidiOSWindows
If you are using Unreal Engine, see ReportRevenue for Unreal Engine SDK.

Revenue reporting.

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 = "{}");

Parameter Details

ParametersTypeExplanationRemarks
eventNamestringEvent name
Adjust channel requires filling in event token to track events.
Mandatory
paramsDicDictionary<string, string>The key-value parameters to be reported
Adjust channel does not require, can pass an empty dictionary.
Required
currencyStringCurrency code for the revenueRequired
revenueValueStringRevenue value expressed in complete currency units (149.99 = $149.99)
Minimum acceptable value is 0.001.
Required
specificChannelStringSpecify channel
1. No specified channel, fill in an empty string.If the string is empty, the default reporting channel is the one that has been initialized, which is the reporting channel configured by ANALYTICS_REPORT_CHANNEL in INTLConfig.ini.For more information, see Access Guide.
2. Specify reporting to a channel, input channel name, e.g., "Facebook".
3. Specify reporting to multiple channels, separate by comma ",", e.g., "Facebook,Firebase".
Optional
extraJsonStringExtended parameters
Additional judgment conditions for Player Network SDK client, this parameter will not report to the specified channel.
Optional

Sample Code

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