Show() public method

Shows full-screen advertisement to user.

public Show ( ) : void
return void
 void OnFullscreenLoaded()
 {
     Debug.Log("OnFullscreenLoaded");
     if (_canShowInterstitial)
     {
         fullscreenAd.Show();
     }
 }
示例#2
0
    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();
            }
        }
    }
示例#3
0
 public void showInterstitialAd()
 {
     if (fullscreenAd.loaded)
     {
         fullscreenAd.Show();
     }
 }