public void PlayAVideo(string adPlacement)
{
if (OnVideoStarted != null)
{
OnVideoStarted();
}
if (AdColony.IsVideoAvailable(adPlacement))
{
Debug.Log("Play a video");
AdColony.ShowVideoAd(adPlacement);
}
else if (Supersonic.Agent.isRewardedVideoAvailable())
{
Debug.Log("Play a supersonic's video");
Supersonic.Agent.showRewardedVideo(adPlacement);
}
else if (Advertisement.isReady(adPlacement))
{
ShowOptions options = new ShowOptions();
options.resultCallback = AdCallbackHandler;
Advertisement.Show(adPlacement, options);
}
else
{
Debug.Log("No video to show");
}
}