Report Revenue
Revenue reporting.
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 = "{}");
Parameter Details
| Parameters | Type | Explanation | Remarks |
|---|---|---|---|
| EventName | FString | Event name Adjust channel requires filling in event token to track events. | Required |
| Currency | FString | Currency code for revenue currency codes | Required |
| RevenueValue | FString | Revenue value expressed in full currency units (149.99 = $149.99) The minimum acceptable value for this parameter is 0.001. | Mandatory |
| ParamsMap | TMap<FString, FString> | Parameters in key-value format for reporting Adjust channel does not require this, can pass an empty dictionary. | Required |
| SpecificChannel | FString | Specify 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 |
| ExtraJson | FString | Extended 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);