diff --git a/Assets/Script/SDKManager/FirebaseManager/FireBaseAnalyticsManager.cs b/Assets/Script/SDKManager/FirebaseManager/FireBaseAnalyticsManager.cs index 2786bd0..3bb0977 100644 --- a/Assets/Script/SDKManager/FirebaseManager/FireBaseAnalyticsManager.cs +++ b/Assets/Script/SDKManager/FirebaseManager/FireBaseAnalyticsManager.cs @@ -48,10 +48,18 @@ public class FireBaseAnalyticsManager : NormalSingleton /// FireBase收益上报 /// - private void OnAdRevenueEvent(string ad_platform, string ad_source, string ad_unit_name, string ad_format, double revenue) + /// 聚合平台名称 + /// 广告平台名称 + /// 广告位ID + /// 广告格式 + /// 单次展示收益 + /// 广告展示点位 + /// 第几次展示该格式的广告 + private void OnAdRevenueEvent(string ad_platform, string ad_source, string ad_unit_name, string ad_format, double revenue, string position, int number) { var impressionParameters = new[] { new Firebase.Analytics.Parameter("ad_platform", ad_platform), @@ -60,6 +68,8 @@ public class FireBaseAnalyticsManager : NormalSingleton { TDAnalytics.Track(eventName, properties); } + + + /// + /// 数数收益上报 + /// + /// 聚合平台名称 + /// 广告平台名称 + /// 广告位ID + /// 广告格式 + /// 单次展示收益 + /// 广告展示点位 + /// 第几次展示该格式的广告 + private void OnAdRevenueEvent(string ad_platform, string ad_source, string ad_unit_name, string ad_format, double revenue, string position, int number) + { + Dictionary properties = new Dictionary(); + properties.Add("ad_platform", ad_platform); + properties.Add("ad_source", ad_source); + properties.Add("ad_unit_name", ad_unit_name); + properties.Add("ad_format", ad_format); + properties.Add("value", revenue); + properties.Add("currency", "USD"); + properties.Add("position", position); + properties.Add("number", number); + + TDAnalytics.Track("ad_impression", properties); + } } \ No newline at end of file