Beispiel #1
0
        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);
        }
Beispiel #2
0
        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();
                }
            }
        }