update: 更新BannerAD Loaded 事件和回调

feature/Inventory
胡宇飞 2024-01-17 17:51:21 +08:00
parent f8371a947e
commit 9559b507f4
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ namespace Guru
protected bool _isAutoLoadAds;
private Action _onSdkInitReady;
public static Action OnBannerLoaded;
public static Action OnInterstitialLoaded;
public static Action OnInterstitialFailed;
@ -250,6 +252,8 @@ namespace Guru
// Analytics.ADBadsLoaded(adUnitId, GetAdsLoadDuration(ref _badsloadStartTime), _badsCategory);
Analytics.ADBadsLoaded(AdParams.Build(adUnitId, adInfo,
duration: GetAdsLoadDuration(ref _badsloadStartTime), category: _badsCategory));
OnBannerLoaded?.Invoke();
}
private void OnBannerFailedEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo)