移除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
);
_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)
{
@ -167,7 +167,7 @@ namespace WZ
OnInterstitialAdClicked
);
_ivStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom,"","",AdsType.Interstitial);
AdsActionEvents.TrackAdStartLoad(Platfrom,AdsType.Interstitial);
}
public double GetInterstitialRevenue()
{
@ -244,7 +244,7 @@ namespace WZ
OnSplashAdClicked
);
_spStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom,"","",AdsType.Splash);
AdsActionEvents.TrackAdStartLoad(Platfrom,AdsType.Splash);
}
public bool IsSplashAvailable()
@ -313,7 +313,7 @@ namespace WZ
_admobNativeAdManager.InitializeAdUnits(
_nativeAdUnits
);
AdsActionEvents.TrackAdStartLoad(Platfrom, "", "", AdsType.Native);
AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Native);
}
public bool IsNativeAvailable(string adUnitId)
@ -351,7 +351,7 @@ namespace WZ
OnBannerAdClicked
);
_bvStartLoadTime = Time.realtimeSinceStartup;
AdsActionEvents.TrackAdStartLoad(Platfrom,"","",AdsType.Banner);
AdsActionEvents.TrackAdStartLoad(Platfrom,AdsType.Banner);
}
public bool IsBannerAvailable()

View File

@ -115,7 +115,7 @@ namespace WZ
);
_rvStartLoadTime = Time.realtimeSinceStartup;
// todo 暂时支持一个广告位,后续支持多个广告位
AdsActionEvents.TrackAdStartLoad(Platfrom,ClientName,_rewardedAdUnits[0], AdsType.Rewarded);
AdsActionEvents.TrackAdStartLoad(Platfrom, AdsType.Rewarded);
}
}
@ -192,7 +192,7 @@ namespace WZ
);
_ivStartLoadTime = Time.realtimeSinceStartup;
// 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));
}
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);
var eventName = "ad_start_load";

View File

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

View File

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