예제 #1
0
    /// <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));
    }
예제 #2
0
 public void ShowBannerAd()
 {
     if (isShowingBanner)
     {
         adManager.HideBannerAd(bannerPlacementId);
         isShowingBanner = false;
     }
     else
     {
         adManager.ShowBannerAd(bannerPlacementId, () => isShowingBanner = true);
     }
 }