admob加载广告放在初始化之后

This commit is contained in:
玉峰 2025-09-03 13:42:19 +08:00
parent a485b5eaa2
commit 1137f261cb
1 changed files with 12 additions and 9 deletions

View File

@ -44,7 +44,6 @@ namespace WZ
MobileAds.Initialize(initStatus =>
{
LoggerUtils.Debug("[Admob] init success");
});
if (_bannerAdUnits.Count > 0) LoadBanner();
if (_interstitialAdUnits.Count > 0) LoadInterstitial();
@ -55,6 +54,10 @@ namespace WZ
{
LoadNative();
}
});
}
public void RefreshAdsData()