AdColony.StatusForZone C# (CSharp) Method

StatusForZone() public static method

public static StatusForZone ( string zone_id ) : string
zone_id string
return string
    public static string StatusForZone( string zone_id )
    {
        return "undefined";
    }

Usage Example

Esempio n. 1
0
		private bool IsRewardAdAvailable(StoreInfo al) {
			bool retValue = false;
			MyDebug.Log(false, "AdsMCG::IsRewardAdAvailable => IsReward Ad Available Called");

			switch(al.ShowAdsFrom) {
#if ADCOLONY
			case Provider.AdColony:
				string rawStatus, status;
				rawStatus = AdColony.StatusForZone (al.AdColonyZone);
				status = string.Format ("Zone {0} status is {1}", al.AdColonyZone, rawStatus);
				MyDebug.Log (false,status);
				retValue = AdColony.IsVideoAvailable (al.AdColonyZone);
				break;
#endif

#if ADMOB
			case Provider.AdMob:
				retValue = GoogleMobileAdsScript.Me.IsRewardVideoAdReady(al.AdMobUnitID);
				//if(!retValue) GoogleMobileAdsScript.Me.RequestRewardVideoAd(al.AdMobUnitID);
				break;
#endif

#if CHARTBOOST
			case Provider.Chartboost:
				retValue = Chartboost.hasRewardedVideo(new CBLocation(al.CBLoation));
				if(!retValue) Chartboost.cacheRewardedVideo(new CBLocation(al.CBLoation));
				break;
#endif
			case Provider.Inmobi:
			default:
				break;
			}
			return retValue;
		}
All Usage Examples Of AdColony::StatusForZone