//------------------------------------------------------------ // Banner Ads. //------------------------------------------------------------ protected override void InternalShowBannerAd(AdPlacement placement, BannerAdPosition position, BannerAdSize __) { #if EM_FAIRBID string id = placement == AdPlacement.Default ? mGlobalAdSettings.DefaultBannerId : ToFairBidAdTag(placement); BannerOptions showOptions = new BannerOptions(); switch (position) { case BannerAdPosition.TopLeft: case BannerAdPosition.TopRight: case BannerAdPosition.Top: showOptions.DisplayAtTheTop(); break; case BannerAdPosition.BottomLeft: case BannerAdPosition.BottomRight: case BannerAdPosition.Bottom: showOptions.DisplayAtTheBottom(); break; default: showOptions.DisplayAtTheBottom(); break; } Banner.Show(id, showOptions); #endif }
/// <summary> /// Convenience method. Generates a new instance of BannerOptions and configure it accordingly. /// </summary> /// <returns>A new banner options instance.</returns> private BannerOptions generateBannerOptions() { BannerOptions bannerOptions = new BannerOptions(); if (mUserInterfaceWrapper.isTopToggleSelcted()) { bannerOptions.DisplayAtTheTop(); } else { bannerOptions.DisplayAtTheBottom(); } return(bannerOptions); }