Skip to main content

Report Revenue

AndroidiOSWindows
If you are using the Unity engine, see ReportRevenue for the Unity SDK.

Revenue reporting.

Supported Channels:

  • Adjust
  • Firebase
  • AppsFlyer
  • Facebook

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ReportRevenue(const FString EventName, const FString Currency, const FString RevenueValue, TMap<FString, FString> ParamsMap, const FString SpecificChannel = "", const FString ExtraJson = "{}");

Parameter Details

ParametersTypeExplanationRemarks
EventNameFStringEvent name
Adjust channel requires filling in event token to track events.
Required
CurrencyFStringCurrency code for revenue currency codesRequired
RevenueValueFStringRevenue value expressed in full currency units (149.99 = $149.99)
The minimum acceptable value for this parameter is 0.001.
Mandatory
ParamsMapTMap<FString, FString>Parameters in key-value format for reporting
Adjust channel does not require this, can pass an empty dictionary.
Required
SpecificChannelFStringSpecify channel
1. No specified channel, fill in 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. 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
ExtraJsonFStringExtended parameters
Additional judgment conditions for Player Network SDK client, this parameter will not report to the specified channel.
Optional

Sample Code

TMap<FString, FString> ParamsMap;
UINTLSDKAPI::ReportRevenue("INTL_EVENT_TEST","CNY", "88.88", ParamsMap);