public static bool IsVideoAvailableByZoneKey(string zoneKey)
{
bool isZoneAvailable = false;
if (ContainsZoneKey(zoneKey))
{
ADCVideoZone videoZone = ADCAdManager.GetVideoZoneObjectByKey(zoneKey);
if (videoZone != null)
{
if (videoZone.zoneType == ADCVideoZoneType.Interstitial)
{
if (AdColony.IsVideoAvailable(videoZone.zoneId))
{
isZoneAvailable = true;
}
}
else if (videoZone.zoneType == ADCVideoZoneType.V4VC)
{
if (AdColony.IsV4VCAvailable(videoZone.zoneId))
{
isZoneAvailable = true;
}
}
else
{
//Check nothing, video zone type isn't correct
}
}
}
return(isZoneAvailable);
}