From 9559b507f412a88c4af8de7a2e444f75fb23409f Mon Sep 17 00:00:00 2001 From: huyfei Date: Wed, 17 Jan 2024 17:51:21 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0BannerAD=20Loaded?= =?UTF-8?q?=20=E4=BA=8B=E4=BB=B6=E5=92=8C=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs b/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs index 152090e..f69ae84 100644 --- a/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs +++ b/Runtime/GuruCore/Runtime/Ads/ADServiceBase.cs @@ -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)