update: 更新 TradPlus 广告配置
							parent
							
								
									179cd87253
								
							
						
					
					
						commit
						8d38347952
					
				|  | @ -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.** { *; } | ||||
|  |  | |||
|  | @ -0,0 +1,3 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 811ed48c0c0a487486c74abd56463199 | ||||
| timeCreated: 1709268219 | ||||
|  | @ -0,0 +1,3 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 2b371a8d213e4b7db1d5d5348581eec3 | ||||
| timeCreated: 1709268083 | ||||
|  | @ -0,0 +1,3 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 0b106e716338488090bac0280df955cd | ||||
| timeCreated: 1709268091 | ||||
|  | @ -0,0 +1,15 @@ | |||
| namespace Guru | ||||
| {    | ||||
|     using System; | ||||
|     using UnityEngine; | ||||
|      | ||||
|     /// <summary> | ||||
|     /// Tradplus 广告配置 | ||||
|     /// </summary> | ||||
|     public partial class GuruSettings | ||||
|     { | ||||
|         [Header("Tradplus 广告配置")] | ||||
|         public AdChannelSettings TradplusSetting; | ||||
|     } | ||||
|      | ||||
| } | ||||
|  | @ -0,0 +1,3 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 284881a6a8164dbda8a288a73a5c4933 | ||||
| timeCreated: 1709268103 | ||||
|  | @ -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); | ||||
|         } | ||||
| 
 | ||||
|         /// <summary> | ||||
|  |  | |||
|  | @ -0,0 +1,47 @@ | |||
| 
 | ||||
| 
 | ||||
| namespace Guru | ||||
| { | ||||
|     using System; | ||||
|     using UnityEngine; | ||||
|      | ||||
|     /// <summary> | ||||
|     /// 广告单元 ID 配置  | ||||
|     /// </summary> | ||||
|     [Serializable] | ||||
|     public class AdChannelUnitIds | ||||
|     { | ||||
|         public string bannerUnitID;	// Banner ID | ||||
|         public string interUnitID;	// Inter ID | ||||
|         public string rewardUnitID;	// Reward ID | ||||
|     } | ||||
|      | ||||
|     [Serializable] | ||||
|     /// <summary> | ||||
|     /// 广告渠道配置 | ||||
|     /// </summary> | ||||
|     public class AdChannelSettings | ||||
|     { | ||||
|         [SerializeField] private AdChannelUnitIds Android; | ||||
|         [SerializeField] private AdChannelUnitIds iOS; | ||||
|          | ||||
|         /// <summary> | ||||
|         /// 获取AppID | ||||
|         /// </summary> | ||||
|         /// <returns></returns> | ||||
|         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; | ||||
|          | ||||
|     } | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,3 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 63f4406aa17c4d00a18fd8c4d18322b6 | ||||
| timeCreated: 1709268235 | ||||
		Loading…
	
		Reference in New Issue