Exemple #1
0
 public override bool IsBannerShowing()
 {
                 #if UNITY_EDITOR
     return(false);
                 #endif
     return(AdmobManager.getInstance().IsBannerShowing);
 }
Exemple #2
0
 public void showIntersitialAd()
 {
     if (_didInit && !InhouseSDK.getInstance().getIsPro())
     {
         AdmobManager.getInstance().ShowInterstitial();
     }
 }
Exemple #3
0
 public override void Init()
 {
     if (_manager._config.Ads.AdsType[TAG_ADSTYPE_INTERSITIAL] == TAG_ADMOB)
     {
         AdmobManager.getInstance().RequestInterstitial(_config.IntersitialId);
     }
 }
Exemple #4
0
 public void hideBannerAd()
 {
     if (_didInit)
     {
         AdmobManager.getInstance().HideBanner();
     }
 }
Exemple #5
0
 void Start()
 {
     if (showBanner)
     {
         AdmobManager.getInstance().ShowBanner(admobBannerAds, admobBannerPos);
     }
 }
Exemple #6
0
 public override void HideBanner()
 {
     if (!_manager._didInit || InhouseSDK.getInstance().getIsPro())
     {
         return;
     }
     AdmobManager.getInstance().HideBanner();
 }
Exemple #7
0
 public override void ShowIntersitial()
 {
     Debug.Log("AdmobMgr: ShowIntersitial1");
     if (_manager._didInit && !InhouseSDK.getInstance().getIsPro())
     {
         Debug.Log("AdmobMgr: ShowIntersitial2");
         AdmobManager.getInstance().ShowInterstitial(_config.IntersitialId, true);
     }
 }
Exemple #8
0
 public override void ShowBanner()
 {
     if (!_manager._didInit || InhouseSDK.getInstance().getIsPro())
     {
         return;
     }
     AdmobManager.getInstance().ShowBanner(_config.BannerId,
                                           AdsMgr.BannerPosition == AdBannerPosition.Bottom ? GoogleMobileAds.Api.AdPosition.Bottom : GoogleMobileAds.Api.AdPosition.Top);
 }
Exemple #9
0
 public void requestIntersitial()
 {
     if (_didInit && !InhouseSDK.getInstance().getIsPro() && _config.GoogleAds.UsingAdModInterstitial)
     {
         int ratio = UnityEngine.Random.Range(0, 100);
         if (ratio < _config.GoogleAds.DisplayFrequencyOfInterstitial)
         {
             Debug.Log("AdmobMgr: request intersitial");
             AdmobManager.getInstance().RequestInterstitial(_config.GoogleAds.InterstitialAdUnitID);
         }
     }
 }
Exemple #10
0
 public void showBannerAd()
 {
     if (_didInit && !InhouseSDK.getInstance().getIsPro())
     {
         AdmobManager.getInstance().ShowBanner(_config.GoogleAds.BannerAdUnitID, BannerPosition);
         Debug.Log("Show banner");
     }
     else
     {
         Debug.Log("Can not show banner");
     }
 }
Exemple #11
0
 public void ReloadBanner()
 {
     Debug.Log("Is in game: " + InhouseSDK.getInstance().IsInGame.ToString());
     if (InhouseSDK.getInstance().IsInGame)
     {
         if (_didInit && !InhouseSDK.getInstance().getIsPro())
         {
             Debug.Log("Show banner");
             AdmobManager.getInstance().ReloadBanner(_config.GoogleAds.BannerAdUnitID, BannerPosition);
         }
         else
         {
             Debug.Log("Can not show banner");
         }
     }
 }
Exemple #12
0
 public void checkAndShowIntersitial()
 {
     if (!_config.GoogleAds.UsingAdModInterstitial)
     {
         if (_didInit && !InhouseSDK.getInstance().getIsPro())
         {
             ShowSkipVideo(null);
         }
         return;
     }
     else
     {
         if (_didInit && !InhouseSDK.getInstance().getIsPro())
         {
             AdmobManager.getInstance().ShowInterstitial();
             checkAndRequestIntersitial();
         }
     }
 }
Exemple #13
0
 public void checkAndRequestIntersitial()
 {
     if (!_config.GoogleAds.UsingAdModInterstitial)
     {
         return;
     }
     if (_didInit && !InhouseSDK.getInstance().getIsPro())
     {
         int ratio = UnityEngine.Random.Range(0, 100);
         if (ratio < _config.GoogleAds.DisplayFrequencyOfInterstitial)
         {
             AdmobManager.getInstance().RequestInterstitial(_config.GoogleAds.InterstitialAdUnitID);
         }
     }
     else
     {
         Debug.Log("AdmobMgr: Dont request");
     }
 }