// 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); }
// 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); }
// 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); }
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 }
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); } }
// 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 ); }
// 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 ); }
// 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 ); }