// Creates a banner of the given type at the given position public static void createBanner(MoPubBannerType bannerType, MoPubAdPosition position, string adUnitId) { if (Application.platform == RuntimePlatform.IPhonePlayer) { _moPubCreateBanner((int)bannerType, (int)position, adUnitId); } }
/* * Banner API */ #if UNITY_IPHONE public static void createBanner(string adUnitId, MoPubAdPosition position, MoPubBannerType bannerType = MoPubBannerType.Size320x50) { MP plugin; if (_pluginsDict.TryGetValue(adUnitId, out plugin)) { plugin.createBanner(bannerType, position); } else { Debug.LogWarning(String.Format(ADUNIT_NOT_FOUND_MSG, adUnitId)); } }
// Creates a banner of the given type at the given position public static void createBanner( MoPubBannerType bannerType, MoPubAdPosition position, string adUnitId ) { if( Application.platform == RuntimePlatform.IPhonePlayer ) _moPubCreateBanner( (int)bannerType, (int)position, adUnitId ); }
// Creates a banner of the given type at the given position. bannerType is iOS only. #if UNITY_IPHONE public static void createBanner(string adUnitId, MoPubAdPosition position, MoPubBannerType bannerType = MoPubBannerType.Size320x50) { MoPubBinding.createBanner(bannerType, position, adUnitId); }