示例#1
0
 // 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);
     }
 }
示例#2
0
    // 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 );
    }
示例#3
0
    // 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);
    }
示例#4
0
    // 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);
    }
示例#5
0
    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));
        }
    }
示例#6
0
文件: MoPub.cs 项目: jikssoft/Assets
    /*
     * 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));
        }
    }
示例#7
0
 // 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 );
 }
示例#8
0
文件: MoPub.cs 项目: winterdl/Flippy
 public static void createBanner(string adUnitId, MoPubAdPosition position)
 {
     MoPubAndroid.createBanner(adUnitId, position);
 }
示例#9
0
文件: MoPub.cs 项目: winterdl/Flippy
    // 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);
    }