Exemple #1
0
    // Interstitial Ad

    public void OnShowInterstitialAd()
    {
        // Check whether an interstitial ad is ready

        if (!Enhance.IsInterstitialReady())
        {
            return;
        }

        // The ad is ready

        Enhance.ShowInterstitialAd();
    }
Exemple #2
0
    // Interstitial Ad

    public void OnShowInterstitialAd()
    {
        // Check whether an interstitial ad is ready

        if (!Enhance.IsInterstitialReady())
        {
            writeLog("Interstitial ad is not ready");
            return;
        }

        // The ad is ready

        Enhance.ShowInterstitialAd();
        writeLog("Showing interstitial ad");
    }
Exemple #3
0
 /**
  * Check if an interstitial ad is ready
  *
  * @return true if an interstitial ad is ready, false if not
  */
 public static bool IsInterstitialReady(string placement = INTERSTITIAL_PLACEMENT_DEFAULT)
 {
     return(Enhance.IsInterstitialReady(placement));
 }