Example #1
0
 void CBDidDismissRewardedVideo(CBLocation location)
 {
     if (mIsCBRewardedAdCompleted)
     {
         mIsCBRewardedAdCompleted = false;
         OnRewardedAdCompleted(AdPlacement.PlacementWithName(location.ToString()));
     }
     else
     {
         OnRewardedAdSkipped(AdPlacement.PlacementWithName(location.ToString()));
     }
 }
Example #2
0
		void CBDidDisplayInterstitial(CBLocation location) {
			MyDebug.Log(false, "AdsMGS::CBDidDisplayInterstitial: " + location);
			AdLocation al = GetPlacement("GameStart");
			StoreInfo si = al.GetIdsFor(_store);
			if(si.CBLoation.Equals(location.ToString())) {
				isFirstTimeShow = false;
				MyDebug.Log(false, "Game Start Ads Shown at " + DateTime.UtcNow.ToString("O"));
			}
		}
Example #3
0
		void CBDidCloseInterstitial(CBLocation location) {
			MyDebug.Log(false, "AdsMGS::CBDidCloseInterstitial: " + location);

			AdLocation al = GetPlacement("BackFromBG");
			StoreInfo si = al.GetIdsFor(_store);
			if(si.CBLoation.Equals(location.ToString())) {
				MyDebug.Log(false, "Back From BG Ads Shown at " + DateTime.UtcNow.ToString("O"));
				_lastBGAddShown = DateTime.UtcNow;
			}
		}
Example #4
0
 void FailToLoadInterstitial(CBLocation location, CBImpressionError error)
 {
     Debug.LogWarning("Ad fail to show at: " + location.ToString() + " with error: " + error.ToString());
 }
Example #5
0
 private void onChartBoostVideoLoadFailed(CBLocation location, CBImpressionError error)
 {
     Debug.Log("Interstitial not loaded at location: " + location.ToString());
     Debug.Log("with error: " + error.GetType());
 }
Example #6
0
 void CBDidDismissInterstitial(CBLocation location)
 {
     OnInterstitialAdCompleted(AdPlacement.PlacementWithName(location.ToString()));
 }
Example #7
0
        void CBDidCloseRewardedVideo(CBLocation location)
        {
            if (isCBRewardedAdCompleted)
            {
                isCBRewardedAdCompleted = false;

                if (RewardedAdCompleted != null)
                {
                    RewardedAdCompleted(RewardedAdNetwork.Chartboost, AdLocation.LocationFromName(location.ToString()));
                }
            }
            else
            {
                if (RewardedAdSkipped != null)
                {
                    RewardedAdSkipped(RewardedAdNetwork.Chartboost, AdLocation.LocationFromName(location.ToString()));
                }
            }
        }
Example #8
0
 void CBDidCloseInterstitial(CBLocation location)
 {
     if (InterstitialAdCompleted != null)
     {
         InterstitialAdCompleted(InterstitialAdNetwork.Chartboost, AdLocation.LocationFromName(location.ToString()));
     }
 }
 DidFailToLoadRewardedVideo(CBLocation location, CBImpressionError cbImpressionError) =>
 CbError(
     what: "Rewarded video failed to load", location: location.ToString(),
     errorText: cbImpressionError.ToString());
 private void DidFailToRecordClick(CBLocation location, CBClickError cbClickError) =>
 CbError(
     what: "Failed to record click", location: location.ToString(),
     errorText: cbClickError.ToString());
 private void DidFailToLoadInterstitial(CBLocation location, CBImpressionError cbImpressionError) =>
 CbError(
     what: "Interstitial failed to load", location: location.ToString(),
     errorText: cbImpressionError.ToString());