parent
fe691235d6
commit
4989926a47
|
|
@ -298,7 +298,8 @@ namespace Guru
|
||||||
/// <param name="isTest"></param>
|
/// <param name="isTest"></param>
|
||||||
public static void Tch001IAPRev(double value, string productId, string orderId, string orderType, string timestamp, bool isTest = false)
|
public static void Tch001IAPRev(double value, string productId, string orderId, string orderType, string timestamp, bool isTest = false)
|
||||||
{
|
{
|
||||||
TchRevEvent(EventTchAdRev001Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, isTest);
|
string sandbox = isTest ? "true" : "false";
|
||||||
|
TchRevEvent(EventTchAdRev001Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, sandbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -310,12 +311,13 @@ namespace Guru
|
||||||
/// <param name="orderId"></param>
|
/// <param name="orderId"></param>
|
||||||
/// <param name="orderType"></param>
|
/// <param name="orderType"></param>
|
||||||
/// <param name="timestamp"></param>
|
/// <param name="timestamp"></param>
|
||||||
/// <param name="isSandbox"></param>
|
/// <param name="isTest"></param>
|
||||||
// public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp)
|
// public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp)
|
||||||
public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp, bool isTest = false)
|
public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp, bool isTest = false)
|
||||||
{
|
{
|
||||||
if (!EnableTch02Event) return;
|
if (!EnableTch02Event) return;
|
||||||
TchRevEvent(EventTchAdRev02Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, isTest);
|
string sandbox = isTest ? "true" : "false";
|
||||||
|
TchRevEvent(EventTchAdRev02Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, sandbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -364,9 +366,9 @@ namespace Guru
|
||||||
/// <param name="productId"></param>
|
/// <param name="productId"></param>
|
||||||
/// <param name="orderId"></param>
|
/// <param name="orderId"></param>
|
||||||
/// <param name="timestamp"></param>
|
/// <param name="timestamp"></param>
|
||||||
/// <param name="isTest"></param>
|
/// <param name="sandbox"></param>
|
||||||
private static void TchRevEvent(string evtName, string platform, double value,
|
private static void TchRevEvent(string evtName, string platform, double value,
|
||||||
string orderType = "", string productId = "", string orderId = "", string timestamp = "", bool isTest = false)
|
string orderType = "", string productId = "", string orderId = "", string timestamp = "", string sandbox = "")
|
||||||
{
|
{
|
||||||
var data = new Dictionary<string, dynamic>()
|
var data = new Dictionary<string, dynamic>()
|
||||||
{
|
{
|
||||||
|
|
@ -375,8 +377,6 @@ namespace Guru
|
||||||
{ ParameterCurrency, USD },
|
{ ParameterCurrency, USD },
|
||||||
};
|
};
|
||||||
|
|
||||||
string sandbox = isTest ? "true" : "false";
|
|
||||||
|
|
||||||
//--------- Extra data for IAP receipt ---------------
|
//--------- Extra data for IAP receipt ---------------
|
||||||
|
|
||||||
if(!string.IsNullOrEmpty(orderType)) data["order_type"] = orderType;
|
if(!string.IsNullOrEmpty(orderType)) data["order_type"] = orderType;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue