ReportRevenue
AndroidiOSWindows
If you were looking for the method for use with Unity, see ReportRevenue for Unity SDK.
If you were looking for the method for use with Unity, see ReportRevenue for Unity SDK.
Reports revenue event.
Supported channels:
- Adjust
- Firebase
- AppsFlyer
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 = "{}");
Input parameters
Parameter | Type | Description | Remark |
---|---|---|---|
EventName | FString | Event name. Adjust requires the event token to track the event. | Required |
Currency | FString | Revenue currency code | Required |
RevenueValue | FString | Revenue value in full currency units (149.99 = $149.99) The minimum value for this parameter is 0.001. | Required |
ParamsMap | TMap<FString, FString> | Parameters to be reported in key-value form. Not required for Adjust, pass an empty library. | Required |
SpecificChannel | FString | The 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. See Integration Guide for more information.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 |
ExtraJson | FString | The extended field The additional condition used by Player Network SDK which is not reported to the specified channels. | Optional |
Code sample
TMap<FString, FString> ParamsMap;
UINTLSDKAPI::ReportRevenue("INTL_EVENT_TEST","CNY", "88.88", ParamsMap);