public void ShowInterstitial1() { if (TestIntertitial1.IsReady) { TestIntertitial1.Show(); } else { Debug.Log("Test intertitial1 is no ready"); } }
public async void ShowInterstitial1Await() { // Show the add UnityEngine.Advertisements.ShowResult result; try { Debug.Log("Awiting for: " + TestIntertitial1.name); result = await TestIntertitial1.Show(); } catch (System.Exception) { result = UnityEngine.Advertisements.ShowResult.Failed; } Debug.Log("Result: " + result); }