예제 #1
0
 public bool IsRewardedAdReady(AdLocation location)
 {
     #if EM_CHARTBOOST
     return(Chartboost.hasRewardedVideo(location.ToChartboostLocation()));
     #else
     return(false);
     #endif
 }
예제 #2
0
        //------------------------------------------------------------
        // Rewarded Ads.
        //------------------------------------------------------------

        public void LoadRewardedAd(AdLocation location)
        {
            #if EM_CHARTBOOST
            Chartboost.cacheRewardedVideo(location.ToChartboostLocation());
            #else
            Debug.LogError(NO_SDK_MESSAGE);
            #endif
        }
예제 #3
0
 public bool IsInterstitialAdReady(AdLocation location)
 {
     #if EM_CHARTBOOST
     return(Chartboost.hasInterstitial(location.ToChartboostLocation()));
     #else
     return(false);
     #endif
 }
예제 #4
0
        //------------------------------------------------------------
        // Interstitial Ads.
        //------------------------------------------------------------

        public void LoadInterstitialAd(AdLocation location)
        {
            #if EM_CHARTBOOST
            Chartboost.cacheInterstitial(location.ToChartboostLocation());
            #else
            Debug.LogError(NO_SDK_MESSAGE);
            #endif
        }
예제 #5
0
 public void ShowRewardedAd(AdLocation location)
 {
     #if EM_CHARTBOOST
     if (IsRewardedAdReady(location))
     {
         Chartboost.showRewardedVideo(location.ToChartboostLocation());
     }
     else
     {
         Debug.Log("Could not show Chartboost rewarded ad: ad is not loaded.");
     }
     #else
     Debug.LogError(NO_SDK_MESSAGE);
     #endif
 }
예제 #6
0
 public void ShowInterstitialAd(AdLocation location)
 {
     #if EM_CHARTBOOST
     if (IsInterstitialAdReady(location))
     {
         Chartboost.showInterstitial(location.ToChartboostLocation());
     }
     else
     {
         Debug.Log("Could not show Chartboost interstitial ad: ad is not loaded.");
     }
     #else
     Debug.LogError(NO_SDK_MESSAGE);
     #endif
 }