Shows full-screen advertisement to user.
void OnFullscreenLoaded() { Debug.Log("OnFullscreenLoaded"); if (_canShowInterstitial) { fullscreenAd.Show(); } }
void WantToShowAD() { #if STAN_ASSET_GOOGLEMOBILEADS || STAN_ASSET_ANDROIDNATIVE || GOOGLE_MOBILE_ADS if (useAdmob) { return; } #endif print("WantToShowAD"); if (fullscreenAd == null) { print("iOS fullscreenAd is null, creating..."); fullscreenAd = new ADInterstitialAd(); } else { if (fullscreenAd.loaded) { print("iOS fullscreenAd.loaded = true, showing..."); fullscreenAd.Show(); } else { print("iOS fullscreenAd.loaded = false, reloading..."); fullscreenAd.ReloadAd(); } } }
public void showInterstitialAd() { if (fullscreenAd.loaded) { fullscreenAd.Show(); } }