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
    /*
     * 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.º 3
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.º 4
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);
    }