// Interstitial Ad public void OnShowInterstitialAd() { // Check whether an interstitial ad is ready if (!Enhance.IsInterstitialReady()) { return; } // The ad is ready Enhance.ShowInterstitialAd(); }
// 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"); }
/** * 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)); }