/// <summary> /// 請求並顯示橫幅廣告 /// </summary> /// <returns>true 代表請求成功, false 代表請求失敗或是或是廣告提供者不支援橫幅廣告</returns> public bool ShowBannerAd(string placement = "") { if (!CheckInit()) { Debug.LogError("AdFactory is not Init"); return(false); } return(adManager.ShowBannerAd(placement)); }
public void ShowBannerAd() { if (isShowingBanner) { adManager.HideBannerAd(bannerPlacementId); isShowingBanner = false; } else { adManager.ShowBannerAd(bannerPlacementId, () => isShowingBanner = true); } }