adjust 关键事件上报

This commit is contained in:
juncong lee 2025-09-02 21:57:18 +08:00
parent cb063b71b1
commit 1b87fb8a25
2 changed files with 10 additions and 2 deletions

View File

@ -273,18 +273,20 @@ namespace WZ
private void OnSplashAdShowed(string adUnitId) private void OnSplashAdShowed(string adUnitId)
{ {
AdsSDKManager.Instance.otherAdsOnShow = true;
} }
private void OnSplashAdDismissed(string adSource, string adUnitId, double revenue) private void OnSplashAdDismissed(string adSource, string adUnitId, double revenue)
{ {
AdsActionEvents.TrackAdClosed(Platfrom, adSource, adUnitId, AdsType.Splash, "", revenue); AdsActionEvents.TrackAdClosed(Platfrom, adSource, adUnitId, AdsType.Splash, "", revenue);
AdsSDKManager.Instance.otherAdsOnShow = false;
AdsSDKManager.Instance.OnSplashAdCloseCallback?.Invoke(); AdsSDKManager.Instance.OnSplashAdCloseCallback?.Invoke();
} }
private void OnSplashAdError(string adUnitId, int errorCode, string errorMsg) private void OnSplashAdError(string adUnitId, int errorCode, string errorMsg)
{ {
AdsActionEvents.TrackAdFailToShow(Platfrom, AdsType.Splash, errorMsg, ""); AdsActionEvents.TrackAdFailToShow(Platfrom, AdsType.Splash, errorMsg, "");
AdsSDKManager.Instance.otherAdsOnShow = false;
AdsSDKManager.Instance.OnSplashAdCloseCallback?.Invoke(); AdsSDKManager.Instance.OnSplashAdCloseCallback?.Invoke();
} }

View File

@ -102,6 +102,7 @@ namespace WZ
_showFailedCallback?.Invoke(); _showFailedCallback?.Invoke();
} }
AdPlayCountManager.IncrementAdPlayCount(AdsType.Rewarded); AdPlayCountManager.IncrementAdPlayCount(AdsType.Rewarded);
AdjustTrackEvent.Instance.TrackEventName("RV_Show", new Dictionary<string, object>());
CheckAndRefreshExpiredBids(AdsType.Rewarded); CheckAndRefreshExpiredBids(AdsType.Rewarded);
} }
#endregion #endregion
@ -154,6 +155,7 @@ namespace WZ
} }
AdPlayCountManager.IncrementAdPlayCount(AdsType.Interstitial); AdPlayCountManager.IncrementAdPlayCount(AdsType.Interstitial);
AdjustTrackEvent.Instance.TrackEventName("IV_Show", new Dictionary<string, object>());
// 刷新其他类型广告 // 刷新其他类型广告
CheckAndRefreshExpiredBids(AdsType.Interstitial); CheckAndRefreshExpiredBids(AdsType.Interstitial);
} }
@ -167,11 +169,12 @@ namespace WZ
public void ShowBanner() public void ShowBanner()
{ {
AdsActionEvents.TrackAdPosition(AdsType.Interstitial, ""); AdsActionEvents.TrackAdPosition(AdsType.Banner, "");
if (IsBannerAdReady()) if (IsBannerAdReady())
{ {
AdmobAdsManager.Instance.DisplayBanner(); AdmobAdsManager.Instance.DisplayBanner();
AdPlayCountManager.IncrementAdPlayCount(AdsType.Banner); AdPlayCountManager.IncrementAdPlayCount(AdsType.Banner);
AdjustTrackEvent.Instance.TrackEventName("Banner_Show", new Dictionary<string, object>());
} }
} }
@ -190,9 +193,11 @@ namespace WZ
public void ShowNativeAd(string _adPos, string adUnitId, NativeAdPosition position) public void ShowNativeAd(string _adPos, string adUnitId, NativeAdPosition position)
{ {
AdsActionEvents.TrackAdPosition(AdsType.Native, "");
if (IsNativeAdReady(adUnitId)) if (IsNativeAdReady(adUnitId))
{ {
AdmobAdsManager.Instance.DisplayNative(_adPos, adUnitId, position); AdmobAdsManager.Instance.DisplayNative(_adPos, adUnitId, position);
AdjustTrackEvent.Instance.TrackEventName("NA_Show", new Dictionary<string, object>());
AdPlayCountManager.IncrementAdPlayCount(AdsType.Native); AdPlayCountManager.IncrementAdPlayCount(AdsType.Native);
} }
} }
@ -211,6 +216,7 @@ namespace WZ
public void ShowSplashAd() public void ShowSplashAd()
{ {
AdjustTrackEvent.Instance.TrackEventName("SP_Show", new Dictionary<string, object>());
AdmobAdsManager.Instance.DisplaySplash(); AdmobAdsManager.Instance.DisplaySplash();
} }