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); }
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); }