From 0ca7d63bf730881211d18fc1aaa56bbabe41afd6 Mon Sep 17 00:00:00 2001 From: Hanlei Qin Date: Sat, 14 Sep 2024 01:16:05 +0800 Subject: [PATCH] bug fixed --- Assets/Huawei/Scripts/Ads/HMSAdsKitManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Huawei/Scripts/Ads/HMSAdsKitManager.cs b/Assets/Huawei/Scripts/Ads/HMSAdsKitManager.cs index 04467b1..82d22e7 100644 --- a/Assets/Huawei/Scripts/Ads/HMSAdsKitManager.cs +++ b/Assets/Huawei/Scripts/Ads/HMSAdsKitManager.cs @@ -356,11 +356,11 @@ public void AssignDefaultBannerAdLoad(AdLoadMethod type = AdLoadMethod.Default, switch (type) { case AdLoadMethod.Default: - DefaultLoadBannerAd = (a, b) => LoadBannerAd(position, bannerSize.ToString()); + DefaultLoadBannerAd = (a, b) => LoadBannerAd(a, b.ToString()); break; case AdLoadMethod.WithAdId: var adId = "testw6vs28auh3"; - DefaultLoadBannerAd = (a, b) => LoadBannerAd(adId, position, bannerSize.ToString()); + DefaultLoadBannerAd = (a, b) => LoadBannerAd(adId, a, b.ToString()); break; case AdLoadMethod.WithConfig: Debug.LogError($"{TAG} AssignDefaultBannerAdLoad with config is not supported.");