diff --git a/Editor/BuildTool/proguard-user.txt b/Editor/BuildTool/proguard-user.txt
index 10d5a24..4aeec51 100644
--- a/Editor/BuildTool/proguard-user.txt
+++ b/Editor/BuildTool/proguard-user.txt
@@ -97,3 +97,7 @@
-keep class com.onevcat.uniwebview.* { *; }
-keep class com.iab.omid.* { *; }
+
+-keep public class com.tradplus.** { *; }
+-keep class com.tradplus.ads.** { *; }
+-keep class com.applovin.mediation.adapters.** { *; }
diff --git a/Runtime/GuruAds/Common.meta b/Runtime/GuruAds/Common.meta
new file mode 100644
index 0000000..d6e7b7c
--- /dev/null
+++ b/Runtime/GuruAds/Common.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 811ed48c0c0a487486c74abd56463199
+timeCreated: 1709268219
\ No newline at end of file
diff --git a/Runtime/GuruAds/Tradplus.meta b/Runtime/GuruAds/Tradplus.meta
new file mode 100644
index 0000000..b00a19e
--- /dev/null
+++ b/Runtime/GuruAds/Tradplus.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 2b371a8d213e4b7db1d5d5348581eec3
+timeCreated: 1709268083
\ No newline at end of file
diff --git a/Runtime/GuruAds/Tradplus/Runtime.meta b/Runtime/GuruAds/Tradplus/Runtime.meta
new file mode 100644
index 0000000..722cfbb
--- /dev/null
+++ b/Runtime/GuruAds/Tradplus/Runtime.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 0b106e716338488090bac0280df955cd
+timeCreated: 1709268091
\ No newline at end of file
diff --git a/Runtime/GuruAds/Tradplus/Runtime/GuruSettigs.Tradplus.cs b/Runtime/GuruAds/Tradplus/Runtime/GuruSettigs.Tradplus.cs
new file mode 100644
index 0000000..9bcbfa0
--- /dev/null
+++ b/Runtime/GuruAds/Tradplus/Runtime/GuruSettigs.Tradplus.cs
@@ -0,0 +1,15 @@
+namespace Guru
+{
+ using System;
+ using UnityEngine;
+
+ ///
+ /// Tradplus 广告配置
+ ///
+ public partial class GuruSettings
+ {
+ [Header("Tradplus 广告配置")]
+ public AdChannelSettings TradplusSetting;
+ }
+
+}
\ No newline at end of file
diff --git a/Runtime/GuruAds/Tradplus/Runtime/GuruSettigs.Tradplus.cs.meta b/Runtime/GuruAds/Tradplus/Runtime/GuruSettigs.Tradplus.cs.meta
new file mode 100644
index 0000000..3016aff
--- /dev/null
+++ b/Runtime/GuruAds/Tradplus/Runtime/GuruSettigs.Tradplus.cs.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 284881a6a8164dbda8a288a73a5c4933
+timeCreated: 1709268103
\ No newline at end of file
diff --git a/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs b/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs
index 75c1c58..d632bde 100644
--- a/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs
+++ b/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs
@@ -131,15 +131,18 @@ namespace Guru
public void OnAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
{
- if (adInfo == null)
- return;
-
+ if (adInfo == null) return;
+
+ // #1. ad_impression
+ OnAdImpression(adInfo);
+
+ // #2. tch_ad_rev_roas calculation
double revenue = adInfo.Revenue;
CalcTaichi001Value(revenue);
CalcTaichi02Value(revenue);
+
+ // #3. Adjust ad_revenue
AdjustService.TrackADRevenue(adInfo);
- //根据变现需求:是否打开ARO买量
- OnAdImpression(adInfo);
}
///
diff --git a/Runtime/GuruCore/Runtime/Ads/AdChannelSettings.cs b/Runtime/GuruCore/Runtime/Ads/AdChannelSettings.cs
new file mode 100644
index 0000000..a63d852
--- /dev/null
+++ b/Runtime/GuruCore/Runtime/Ads/AdChannelSettings.cs
@@ -0,0 +1,47 @@
+
+
+namespace Guru
+{
+ using System;
+ using UnityEngine;
+
+ ///
+ /// 广告单元 ID 配置
+ ///
+ [Serializable]
+ public class AdChannelUnitIds
+ {
+ public string bannerUnitID; // Banner ID
+ public string interUnitID; // Inter ID
+ public string rewardUnitID; // Reward ID
+ }
+
+ [Serializable]
+ ///
+ /// 广告渠道配置
+ ///
+ public class AdChannelSettings
+ {
+ [SerializeField] private AdChannelUnitIds Android;
+ [SerializeField] private AdChannelUnitIds iOS;
+
+ ///
+ /// 获取AppID
+ ///
+ ///
+ public AdChannelUnitIds UnitIds()
+ {
+#if UNITY_IOS
+ return iOS;
+#else
+ return Android;
+#endif
+ }
+
+ public string BannerUnitID => UnitIds().bannerUnitID;
+ public string InterUnitID => UnitIds().interUnitID;
+ public string RewardUnitID => UnitIds().rewardUnitID;
+
+ }
+
+}
\ No newline at end of file
diff --git a/Runtime/GuruCore/Runtime/Ads/AdChannelSettings.cs.meta b/Runtime/GuruCore/Runtime/Ads/AdChannelSettings.cs.meta
new file mode 100644
index 0000000..4d9aed9
--- /dev/null
+++ b/Runtime/GuruCore/Runtime/Ads/AdChannelSettings.cs.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 63f4406aa17c4d00a18fd8c4d18322b6
+timeCreated: 1709268235
\ No newline at end of file