AdColony.ShowVideoAd C# (CSharp) Méthode

ShowVideoAd() public static méthode

public static ShowVideoAd ( ) : bool
Résultat bool
    public static bool ShowVideoAd()
    {
        return false;
    }

Same methods

AdColony::ShowVideoAd ( string zone_id ) : bool

Usage Example

Exemple #1
0
    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");
        }
    }
All Usage Examples Of AdColony::ShowVideoAd