优化admob初始化
This commit is contained in:
parent
4faae793cf
commit
e61b11be7b
|
@ -42,13 +42,14 @@ namespace WZ
|
||||||
//
|
//
|
||||||
MobileAds.Initialize(initStatus =>
|
MobileAds.Initialize(initStatus =>
|
||||||
{
|
{
|
||||||
if (_bannerAdUnits.Count > 0) LoadBanner();
|
|
||||||
if (_interstitialAdUnits.Count > 0) LoadInterstitial();
|
|
||||||
if (_rewardedAdUnits.Count > 0) LoadRewarded();
|
|
||||||
if(_splashAdUnits.Count > 0) AdsSplashManager.Instance.InitSplash();
|
|
||||||
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)
|
if (_nativeAdUnits.Count > 0)
|
||||||
{
|
{
|
||||||
LoadNative();
|
LoadNative();
|
||||||
|
|
Loading…
Reference in New Issue