移除startload事件多余属性

This commit is contained in:
juncong lee 2025-09-15 13:59:03 +08:00
parent 6d11d8d294
commit 55ceded004
5 changed files with 12 additions and 12 deletions

View File

@ -88,7 +88,7 @@ namespace WZ
OnRewardedAdClicked OnRewardedAdClicked
); );
_rvStartLoadTime = Time.realtimeSinceStartup; _rvStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Rewarded); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Rewarded);
} }
public void DisplayRewarded(string adPos, Action<bool,double> rewardCallback = null, Action showFailedCallback = null) public void DisplayRewarded(string adPos, Action<bool,double> rewardCallback = null, Action showFailedCallback = null)
{ {
@ -167,7 +167,7 @@ namespace WZ
OnInterstitialAdClicked OnInterstitialAdClicked
); );
_ivStartLoadTime = Time.realtimeSinceStartup; _ivStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom,"","",AdsType.Interstitial); AdsActionEvents.TrackAdStartLoad(Platfrom,AdsType.Interstitial);
} }
public double GetInterstitialRevenue() public double GetInterstitialRevenue()
{ {
@ -244,7 +244,7 @@ namespace WZ
OnSplashAdClicked OnSplashAdClicked
); );
_spStartLoadTime = Time.realtimeSinceStartup; _spStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom,"","",AdsType.Splash); AdsActionEvents.TrackAdStartLoad(Platfrom,AdsType.Splash);
} }
public bool IsSplashAvailable() public bool IsSplashAvailable()
@ -313,7 +313,7 @@ namespace WZ
_admobNativeAdManager.InitializeAdUnits( _admobNativeAdManager.InitializeAdUnits(
_nativeAdUnits _nativeAdUnits
); );
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Native); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Native);
} }
public bool IsNativeAvailable(string adUnitId) public bool IsNativeAvailable(string adUnitId)
@ -351,7 +351,7 @@ namespace WZ
OnBannerAdClicked OnBannerAdClicked
); );
_bvStartLoadTime = Time.realtimeSinceStartup; _bvStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom,"","",AdsType.Banner); AdsActionEvents.TrackAdStartLoad(Platfrom,AdsType.Banner);
} }
public bool IsBannerAvailable() public bool IsBannerAvailable()

View File

@ -115,7 +115,7 @@ namespace WZ
); );
_rvStartLoadTime = Time.realtimeSinceStartup; _rvStartLoadTime = Time.realtimeSinceStartup;
// todo 暂时支持一个广告位,后续支持多个广告位 // todo 暂时支持一个广告位,后续支持多个广告位
AdsActionEvents.TrackAdStartLoad(Platfrom,ClientName,_rewardedAdUnits[0], AdsType.Rewarded); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Rewarded);
} }
} }
@ -192,7 +192,7 @@ namespace WZ
); );
_ivStartLoadTime = Time.realtimeSinceStartup; _ivStartLoadTime = Time.realtimeSinceStartup;
// todo 暂时支持一个广告位,后续支持多个广告位 // todo 暂时支持一个广告位,后续支持多个广告位
AdsActionEvents.TrackAdStartLoad(Platfrom,ClientName,_interstitialAdUnits[0], AdsType.Interstitial); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Interstitial);
} }
} }

View File

@ -49,7 +49,7 @@ namespace WZ
LoggerUtils.Debug("[actionevent] TrackAdClosed"+JsonMapper.ToJson(dic)); LoggerUtils.Debug("[actionevent] TrackAdClosed"+JsonMapper.ToJson(dic));
} }
public static void TrackAdStartLoad(PlatformType adPlatform, string adSource, string adUnitName, AdsType adFormat) public static void TrackAdStartLoad(PlatformType adPlatform, AdsType adFormat)
{ {
AdPlayCountManager.IncrementAdsActionCount(adFormat, AdPlayCountManager.STARTLOAD_COUNT_SUFFIX); AdPlayCountManager.IncrementAdsActionCount(adFormat, AdPlayCountManager.STARTLOAD_COUNT_SUFFIX);
var eventName = "ad_start_load"; var eventName = "ad_start_load";

View File

@ -94,7 +94,7 @@ namespace WZ
{ {
if (!_maxRewardedUnits.Contains(adUnitId)) return; if (!_maxRewardedUnits.Contains(adUnitId)) return;
if (string.IsNullOrEmpty(adUnitId)) return; if (string.IsNullOrEmpty(adUnitId)) return;
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Rewarded); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Rewarded);
MaxSdk.LoadRewardedAd(adUnitId); MaxSdk.LoadRewardedAd(adUnitId);
_rvStartLoadTimes[adUnitId] = Time.realtimeSinceStartup; _rvStartLoadTimes[adUnitId] = Time.realtimeSinceStartup;
@ -285,7 +285,7 @@ namespace WZ
if (!_maxInterstitialUnits.Contains(adUnit)) return; if (!_maxInterstitialUnits.Contains(adUnit)) return;
if (string.IsNullOrEmpty(adUnit)) return; if (string.IsNullOrEmpty(adUnit)) return;
MaxSdk.LoadInterstitial(adUnit); MaxSdk.LoadInterstitial(adUnit);
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Interstitial); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Interstitial);
_ivStartLoadTimes[adUnit] = Time.realtimeSinceStartup; _ivStartLoadTimes[adUnit] = Time.realtimeSinceStartup;
// 初始化重试次数 // 初始化重试次数
if (!_interRetryAttempts.ContainsKey(adUnit)) if (!_interRetryAttempts.ContainsKey(adUnit))

View File

@ -60,7 +60,7 @@ namespace WZ
ATRewardedAutoVideo.Instance.client.onRewardEvent += OnAdRewardEvent; ATRewardedAutoVideo.Instance.client.onRewardEvent += OnAdRewardEvent;
ATRewardedAutoVideo.Instance.addAutoLoadAdPlacementID(new string[] { _topon_rewarded_units }); ATRewardedAutoVideo.Instance.addAutoLoadAdPlacementID(new string[] { _topon_rewarded_units });
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Rewarded); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Rewarded);
} }
public void LoadRewarded() { } public void LoadRewarded() { }
@ -92,7 +92,7 @@ namespace WZ
ATInterstitialAutoAd.Instance.client.onAdShowFailureEvent += OnAdVideoFailureEvent; ATInterstitialAutoAd.Instance.client.onAdShowFailureEvent += OnAdVideoFailureEvent;
ATInterstitialAutoAd.Instance.client.onAdClickEvent += OnAdVideoClickedEvent; ATInterstitialAutoAd.Instance.client.onAdClickEvent += OnAdVideoClickedEvent;
ATInterstitialAutoAd.Instance.addAutoLoadAdPlacementID(new string[] { _topon_interstitial_units }); ATInterstitialAutoAd.Instance.addAutoLoadAdPlacementID(new string[] { _topon_interstitial_units });
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Interstitial); AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Interstitial);
} }
public void LoadInterstitial() { } public void LoadInterstitial() { }