admob加载广告放在初始化之后
This commit is contained in:
parent
a485b5eaa2
commit
1137f261cb
|
@ -44,17 +44,20 @@ namespace WZ
|
||||||
MobileAds.Initialize(initStatus =>
|
MobileAds.Initialize(initStatus =>
|
||||||
{
|
{
|
||||||
LoggerUtils.Debug("[Admob] init success");
|
LoggerUtils.Debug("[Admob] init success");
|
||||||
|
|
||||||
|
if (_bannerAdUnits.Count > 0) LoadBanner();
|
||||||
|
if (_interstitialAdUnits.Count > 0) LoadInterstitial();
|
||||||
|
if (_rewardedAdUnits.Count > 0) LoadRewarded();
|
||||||
|
if (_splashAdUnits.Count > 0) AdsSplashManager.Instance.InitSplash();
|
||||||
|
|
||||||
|
if (_nativeAdUnits.Count > 0)
|
||||||
|
{
|
||||||
|
LoadNative();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (_bannerAdUnits.Count > 0) LoadBanner();
|
|
||||||
if (_interstitialAdUnits.Count > 0) LoadInterstitial();
|
|
||||||
if (_rewardedAdUnits.Count > 0) LoadRewarded();
|
|
||||||
if (_splashAdUnits.Count > 0) AdsSplashManager.Instance.InitSplash();
|
|
||||||
|
|
||||||
if (_nativeAdUnits.Count > 0)
|
|
||||||
{
|
|
||||||
LoadNative();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RefreshAdsData()
|
public void RefreshAdsData()
|
||||||
|
|
Loading…
Reference in New Issue