public override bool isReadyInterstitial() { bool isReady = Chartboost.hasInterstitial(CBLocation.Default); Debug.Log("Ads - Chartboost - Interstitial isReady - " + (isReady ? "YES" : "NO")); Analytic.Event("Ads", "Chartboost Interstitial", isReady ? "YES" : "NO"); if (!isReady) { Chartboost.cacheInterstitial(CBLocation.Default); } return(isReady); }
void didDismissInterstitial(CBLocation location) { Debug.Log("Ads - Chartboost Interstitial - Dismissing... (" + location + ")"); ui.Unblock(); if (isInterstitialClick) { Analytic.Event("Ads", "Chartboost Interstitial Result", "Click"); if (interstitialSuccess != null) { interstitialSuccess(); } } else { Analytic.Event("Ads", "Chartboost Interstitial Result", "Dismiss"); if (interstitialFailed != null) { interstitialFailed(); } } }