Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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 );
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 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));
        }
    }
Ejemplo n.º 6
0
    /*
     * 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));
        }
    }
Ejemplo n.º 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 );
 }
Ejemplo n.º 8
0
 public static void createBanner(string adUnitId, MoPubAdPosition position)
 {
     MoPubAndroid.createBanner(adUnitId, position);
 }
Ejemplo n.º 9
0
    // 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);
    }