// 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 public static void createBanner( string adUnitId, MoPubAdPosition position ) { if( Application.platform != RuntimePlatform.Android ) return; _plugin.Call( "createBanner", adUnitId, (int)position ); }
// Creates a banner of the given type at the given position public static void createBanner(string adUnitId, MoPubAdPosition position) { if (Application.platform != RuntimePlatform.Android) { return; } _plugin.Call("createBanner", adUnitId, (int)position); }
// Creates a banner of the given type at the given position public void createBanner(MoPubAdPosition position) { if (Application.platform != RuntimePlatform.Android) { return; } _bannerPlugin.Call("createBanner", (int)position); }
public static void createBanner(string adUnitId, MoPubAdPosition position) { MPBanner plugin; if (_bannerPluginsDict.TryGetValue(adUnitId, out plugin)) { plugin.createBanner(position); } else { Debug.LogWarning(String.Format(ADUNIT_NOT_FOUND_MSG, 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 ); }
public static void createBanner(string adUnitId, MoPubAdPosition position) { MoPubAndroid.createBanner(adUnitId, position); }
// 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); }