Пример #1
0
    public void ShowAd(UnityEngine.Monetization.ShowAdCallbacks showAdCallbacks)
    {
        if (!Advertisement.IsReady(placementId))
        {
            return;
        }
        UnityEngine.Monetization.ShowAdPlacementContent content =
            (UnityEngine.Monetization.ShowAdPlacementContent)UnityEngine.Monetization.Monetization.GetPlacementContent(placementId);

        content.Show(showAdCallbacks);
    }
Пример #2
0
    public void ShowAds(UnityEngine.Monetization.ShowAdCallbacks showAdCallbacks)
    {
        if (!IsReadyInterstitial())
        {
            return;
        }

        UnityEngine.Monetization.ShowAdPlacementContent content =
            (UnityEngine.Monetization.ShowAdPlacementContent)UnityEngine.Monetization.Monetization.GetPlacementContent(placementId);

        content.Show(showAdCallbacks);
    }