public override bool IsBannerShowing() { #if UNITY_EDITOR return(false); #endif return(AdmobManager.getInstance().IsBannerShowing); }
public void showIntersitialAd() { if (_didInit && !InhouseSDK.getInstance().getIsPro()) { AdmobManager.getInstance().ShowInterstitial(); } }
public override void Init() { if (_manager._config.Ads.AdsType[TAG_ADSTYPE_INTERSITIAL] == TAG_ADMOB) { AdmobManager.getInstance().RequestInterstitial(_config.IntersitialId); } }
public void hideBannerAd() { if (_didInit) { AdmobManager.getInstance().HideBanner(); } }
void Start() { if (showBanner) { AdmobManager.getInstance().ShowBanner(admobBannerAds, admobBannerPos); } }
public override void HideBanner() { if (!_manager._didInit || InhouseSDK.getInstance().getIsPro()) { return; } AdmobManager.getInstance().HideBanner(); }
public override void ShowIntersitial() { Debug.Log("AdmobMgr: ShowIntersitial1"); if (_manager._didInit && !InhouseSDK.getInstance().getIsPro()) { Debug.Log("AdmobMgr: ShowIntersitial2"); AdmobManager.getInstance().ShowInterstitial(_config.IntersitialId, true); } }
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); }
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); } } }
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"); } }
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"); } } }
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(); } } }
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"); } }