//--------------------------------------
    //  Public Methods
    //--------------------------------------


    public static int CreateAdBanner(TextAnchor anchor, GADBannerSize size = GADBannerSize.BANNER)
    {
        if (!_IsInited)
        {
            Debug.LogWarning("CreateBannerAd shoudl be called only after Init function. Call ignored");
            return(0);
        }

        switch (Application.platform)
        {
        case RuntimePlatform.IPhonePlayer:
            if (UltimateMobileSettings.Instance.IOSAdEdngine == UM_IOSAdEngineOprions.GoogleMobileAd)
            {
                return(GoogleMobileAd.CreateAdBanner(anchor, size).id);
            }
            break;

        case RuntimePlatform.Android:
            if (UltimateMobileSettings.Instance.PlatformEngine == UM_PlatformDependencies.Amazon)
            {
                return(SA_AmazonAdsManager.Instance.CreateBanner(AmazonAdBanner.BannerAligns.Bottom));
            }
            else
            {
                return(GoogleMobileAd.CreateAdBanner(anchor, size).id);
            }

        case RuntimePlatform.WP8Player:
            return(GoogleMobileAd.CreateAdBanner(anchor, size).id);
        }

        return(0);
    }
    public AndroidADBanner(int x, int y, GADBannerSize size, int id)
    {
        _id = id;
        _size = size;

        AN_GoogleAdProxy.CreateBannerAdPos (x, y, (int) _size, _id);
    }
	public AndroidADBanner(int x, int y, GADBannerSize size, int id) {
		_id = id;
		_size = size;
		
		
		AndroidNative.CreateBannerAdPos (x, y, (int) _size, _id);
		
	}
    public AndroidADBanner(int x, int y, GADBannerSize size, int id)
    {
        _id   = id;
        _size = size;


        AndroidNative.CreateBannerAdPos(x, y, (int)_size, _id);
    }
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------
    public AndroidADBanner(TextAnchor anchor, GADBannerSize size, int id)
    {
        _id = id;
        _size = size;
        _anchor = anchor;

        AN_GoogleAdProxy.CreateBannerAd (gravity, (int) _size, _id);
    }
    public AndroidADBanner(int x, int y, GADBannerSize size, int id)
    {
        _id   = id;
        _size = size;


        AN_GoogleAdProxy.CreateBannerAdPos(x, y, (int)_size, _id);
    }
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------

    public AndroidADBanner(TextAnchor anchor, GADBannerSize size, int id)
    {
        _id     = id;
        _size   = size;
        _anchor = anchor;


        AN_GoogleAdProxy.CreateBannerAd((int)gravity, (int)_size, _id);
    }
Example #8
0
    public IOSADBanner(int x, int y, GADBannerSize size, int id)
    {
        _id   = id;
        _size = size;

                #if (UNITY_IPHONE && !UNITY_EDITOR && !CODE_DISABLED) || SA_DEBUG_MODE
        _GADCreateBannerAdPos(x, y, (int)_size, _id);
                #endif
    }
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------

    public AndroidADBanner(TextAnchor anchor, GADBannerSize size, int id)
    {
        _id     = id;
        _size   = size;
        _anchor = anchor;


        AndroidNative.CreateBannerAd(gravity, (int)_size, _id);
    }
	//--------------------------------------
	// INITIALIZE
	//--------------------------------------

	public AndroidADBanner(TextAnchor anchor, GADBannerSize size, int id) {
		_id = id;
		_size = size;
		_anchor = anchor;
	

		AndroidNative.CreateBannerAd (gravity, (int) _size, _id);

	}
Example #11
0
    public WP8ADBanner(int x, int y, GADBannerSize size, int id)
    {
        _id   = id;
        _size = size;

                #if (UNITY_WP8 && !UNITY_EDITOR) || SA_DEBUG_MODE
        AdManager.instance.CreateBannerAd((int)size, id, 5);
                #endif
    }
Example #12
0
	//--------------------------------------
	// INITIALIZE
	//--------------------------------------
	
	public WP8ADBanner(TextAnchor anchor, GADBannerSize size, int id) {
		_id = id;
		_size = size;
		_anchor = anchor;

		#if (UNITY_WP8 && !UNITY_EDITOR) || SA_DEBUG_MODE
		AdManager.instance.CreateBannerAd((int)size, id, (int)anchor);
		#endif
		
	}
Example #13
0
    public static GoogleMobileAdBanner CreateAdBanner(int x, int y, GADBannerSize size)
    {
        if (!_IsInited)
        {
            Debug.LogWarning("CreateBannerAd shoudl be called only after Init function. Call ignored");
            return(null);
        }

        return(controller.CreateAdBanner(x, y, size));
    }
Example #14
0
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------

    public WP8ADBanner(TextAnchor anchor, GADBannerSize size, int id)
    {
        _id     = id;
        _size   = size;
        _anchor = anchor;

                #if (UNITY_WP8 && !UNITY_EDITOR) || SA_DEBUG_MODE
        AdManager.instance.CreateBannerAd((int)size, id, (int)anchor);
                #endif
    }
Example #15
0
    public IOSADBanner(int x, int y, GADBannerSize size, int id)
    {
        _id = id;
        _size = size;

        #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE
        _GADCreateBannerAdPos(x, y, (int) _size, _id);

        #endif
    }
Example #16
0
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------
    public IOSADBanner(TextAnchor anchor, GADBannerSize size, int id)
    {
        _id = id;
        _size = size;
        _anchor = anchor;

        #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE
        _GADCreateBannerAd(gravity, (int) _size, _id);
        #endif
    }
Example #17
0
	public WP8ADBanner(int x, int y, GADBannerSize size, int id) {

		_id = id;
		_size = size;
		
		#if (UNITY_WP8 && !UNITY_EDITOR) || SA_DEBUG_MODE
		AdManager.instance.CreateBannerAd((int)size, id, 5);
		
		#endif
		
	}
Example #18
0
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------

    public IOSADBanner(TextAnchor anchor, GADBannerSize size, int id)
    {
        _id     = id;
        _size   = size;
        _anchor = anchor;


                #if (UNITY_IPHONE && !UNITY_EDITOR && !CODE_DISABLED) || SA_DEBUG_MODE
        _GADCreateBannerAd(gravity, (int)_size, _id);
                #endif
    }
Example #19
0
    public GoogleMobileAdBanner CreateAdBanner(int x, int y, GADBannerSize size)
    {
        if (!IsInited)
        {
            Debug.LogWarning("CreateBannerAd shoudl be called only after Init function. Call ignored");
            return(null);
        }

        IOSADBanner bannner = new IOSADBanner(x, y, size, GADBannerIdFactory.nextId);

        _banners.Add(bannner.id, bannner);

        return(bannner);
    }
Example #20
0
    //--------------------------------------
    //  PUBLIC METHODS
    //--------------------------------------

    public GoogleMobileAdBanner CreateAdBanner(TextAnchor anchor, GADBannerSize size)
    {
        if (!_IsInited)
        {
            Debug.LogWarning("CreateBannerAd shoudl be called only after Init function. Call ignored");
            return(null);
        }

        AndroidADBanner bannner = new AndroidADBanner(anchor, size, GADBannerIdFactory.nextId);

        _banners.Add(bannner.id, bannner);

        return(bannner);
    }
Example #21
0
	public static GoogleMobileAdBanner CreateAdBanner(int x, int y, GADBannerSize size)  {
		if(!_IsInited) {
			Debug.LogWarning ("CreateBannerAd shoudl be called only after Init function. Call ignored");
			return null;
		}

		return controller.CreateAdBanner(x, y, size);
	}