Exemplo n.º 1
0
 /// <summary>
 /// Cancels the interstitial and returns control back to the application.
 /// </summary>
 /// Call this method to cancel the interstitial. Canceling interstitials before they finish will diminish publisher revenue.
 /// Note this has no affect on Android.
 /// <param name="ad">The interstitial ad returned from RequestInterstitialAd.</param>
 public static void CancelAd(InterstitialAd ad)
 {
     if (IsInitialized())
     {
         SharedInstance.CancelAd(ad);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Cancels the interstitial and returns control back to the application.
 /// </summary>
 /// Call this method to cancel the interstitial. Canceling interstitials before they finish will diminish publisher revenue.
 /// Note this has no affect on Android.
 /// <param name="ad">The interstitial ad returned from RequestInterstitialAd.</param>
 public static void CancelAd(InterstitialAd ad)
 {
     if (IsInitialized())
     {
         if (ad != null)
         {
             SharedInstance.CancelAd(ad);
         }
         else
         {
             Debug.LogError(Constants.AdsMessageErrorNullAd);
         }
     }
 }