예제 #1
0
    // Checks to see if an ad is available.
    public static void checkIfAdIsAvailable(string adSpace, FlurryAdPlacement adSize, long timeout)
    {
        if (Application.platform != RuntimePlatform.Android)
        {
            return;
        }

        _plugin.Call("isAdAvailable", adSpace, (int)adSize, timeout);
    }
예제 #2
0
    // Attempts to display an ad if available. Timeout is the maximum time in milliseconds that Flurry should take to load the ad
    public static void displayAd(string adSpace, FlurryAdPlacement adSize, long timeout)
    {
        if (Application.platform != RuntimePlatform.Android)
        {
            return;
        }

        _plugin.Call("displayAd", adSpace, (int)adSize, timeout);
    }
예제 #3
0
    // Fetches an ad for the given space
    public static void fetchAdsForSpace(string adSpace, FlurryAdPlacement adSize)
    {
        if (Application.platform != RuntimePlatform.Android)
        {
            return;
        }

        _plugin.Call("fetchAdsForSpace", adSpace, (int)adSize);
    }
예제 #4
0
    public AdvertisementFlurry(string key_android, string key_ios, string banner_id, string inters_id) : base(key_android, key_ios)
    {
        if (Info.IsEditor() || Info.IsWeb())
        {
            return;
        }

        this.banner_id = banner_id;
        this.inters_id = inters_id;

                #if UNITY_ANDROID
        placement = FlurryAdPlacement.BannerBottom;
                #elif UNITY_IPHONE
        placement = FlurryAdSize.Bottom;
                #endif
    }
예제 #5
0
    public override void fetchBanner(AdvertisementManager.Positions pos)
    {
        try
        {
            base.fetchBanner(pos);

            if (Info.IsEditor())
            {
                return;
            }

                        #if UNITY_ANDROID
            if (pos == AdvertisementManager.Positions.BOTTOM)
            {
                placement = FlurryAdPlacement.BannerBottom;
            }
            else
            {
                placement = FlurryAdPlacement.BannerTop;
            }

            FlurryAndroid.fetchAdsForSpace(banner_id, placement);
                        #elif UNITY_IPHONE
            if (pos == AdvertisementManager.Positions.BOTTOM)
            {
                placement = FlurryAdSize.Bottom;
            }
            else
            {
                placement = FlurryAdSize.Top;
            }

            FlurryBinding.fetchAdForSpace(banner_id, placement);
                        #endif
        }
        catch
        {
            Error(API, ERROR_LOADING_BANNER);
        }
    }
예제 #6
0
	// Checks to see if an ad is available.
	public static void checkIfAdIsAvailable( string adSpace, FlurryAdPlacement adSize, long timeout )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;

		_plugin.Call( "isAdAvailable", adSpace, (int)adSize, timeout );
	}
예제 #7
0
	// Attempts to display an ad if available. Timeout is the maximum time in milliseconds that Flurry should take to load the ad
	public static void displayAd( string adSpace, FlurryAdPlacement adSize, long timeout )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;

		_plugin.Call( "displayAd", adSpace, (int)adSize, timeout );
	}
예제 #8
0
	// Fetches an ad for the given space
	public static void fetchAdsForSpace( string adSpace, FlurryAdPlacement adSize )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;

		_plugin.Call( "fetchAdsForSpace", adSpace, (int)adSize );
	}