ReportRevenue [Player Network SDK Only]
[Player Network SDK Only] Reports revenue event.
Supported channels:
- Adjust
- Firebase
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS
platform.Supports
Android, iOS
platform.Function Definition
- Unity
- Unreal Engine
void ReportRevenue(
string eventName,
Dictionary<string, string> paramsDic,
string currency,
string revenueValue,
string specificChannel = "",
string extraJson = "{}");
static void ReportRevenue(
const std::string &event_name,
std::map<std::string, std::string> ¶ms,
const std::string ¤cy,
const std::string &revenue_value,
const std::string &specific_channel = "",
const std::string &extra_json = "{}");
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description | Remark |
---|---|---|---|
eventName | string | Event name Adjust requires the event token to track the event. | Required |
paramsDic | Dictionary<string, string> | Parameters to be reported in key-value form. Not required for Adjust, pass an empty library. | Required |
currency | string | Revenue currency code | Required |
revenueValue | string | Revenue value in full currency units (149.99 = $149.99) The minimum value for this parameter is 0.001. | Required |
specificChannel | string | 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. 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 |
extraJson | string | The extended field The additional condition used by Player Network SDK which is not reported to the specified channels. | Optional |
Parameter | Type | Description | Remark |
---|---|---|---|
event_name | std::string | Event name Adjust requires the event token to track the event. | Required |
currency | std::string | Revenue currency code | Required |
revenue_value | std::string | Revenue value in full currency units (149.99 = $149.99) The minimum value for this parameter is 0.001. | Required |
params | std::map<std::string, std::string> | Parameters to be reported in key-value form. Not required for Adjust, pass an empty library. | Required |
specific_channel | std::string | 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. 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 |
extra_json | std::string | The extended field The additional condition used by Player Network SDK which is not reported to the specified channels. | Optional |
Code Sample
- Unity
- Unreal Engine
Dictionary<string, string> paramsDic = new Dictionary<string, string>();
// TODO: Add key-value pair
UnionAdapterAPI.GetReportService().ReportRevenue("h48sp8", paramsDic, "CNY", "88.88");
std::map < std::string, std::string> _params_map;
// TODO: Add key-value pair
GUA_NAMESPACE::GUAReportService::ReportRevenue("INTL_EVENT_TEST","CNY", "88.88", _params_map);