public void HideBanner(bool hide) { if (this._isEnableBanner == true) { if (this.IsAdsShow()) { this._bannerHide = hide; if (hide == true) { MaxSdk.HideBanner(this.GetBannerKey()); } else { MaxSdk.ShowBanner(this.GetBannerKey()); } this.iBanner.gameObject.SetActive(!hide); } else { MaxSdk.HideBanner(this.GetBannerKey()); this.iBanner.gameObject.SetActive(false); } } else { this.ycManager.ycConfig.LogWarning("[Ads] not init"); } }
public override void HideAdsBanner() { if (mDefaultBannerAdList.Count <= 0 || !mDefaultBannerAdList[0]._Available) { return; } base.HideAdsBanner(); MaxSdk.HideBanner(mDefaultBannerAdList[0]._Id); }
protected override void InternalHideBannerAd(AdPlacement placement) { #if EM_APPLOVIN string id = placement == AdPlacement.Default ? mAdSettings.DefaultBannerAdId.Id : FindIdForPlacement(mAdSettings.CustomBannerAdIds, placement); if (string.IsNullOrEmpty(id)) { return; } MaxSdk.HideBanner(id); #endif }
private void ToggleBannerVisibility() { if (!isBannerShowing) { MaxSdk.ShowBanner(BannerAdUnitId); showBannerButton.GetComponentInChildren <Text>().text = "Hide Banner"; } else { MaxSdk.HideBanner(BannerAdUnitId); showBannerButton.GetComponentInChildren <Text>().text = "Show Banner"; } isBannerShowing = !isBannerShowing; }
public void HideBanner() { MaxSdk.HideBanner(bannerAdUnitId); }