public void Dispose()
 {
     if (ad != null)
     {
         ad = null;
     }
 }
        public void Cache()
        {
            WinRTPlugin.Dispatcher.BeginInvoke(delegate()
            {
                ad                     = new GoogleAds.InterstitialAd(unitID);
                ad.ReceivedAd         += adReceived;
                ad.FailedToReceiveAd  += ad_FailedToReceiveAd;
                ad.ShowingOverlay     += ad_ShowingOverlay;
                ad.DismissingOverlay  += ad_DismissingOverlay;
                ad.LeavingApplication += ad_LeavingApplication;

                var adRequest          = new AdRequest();
                adRequest.ForceTesting = testing;
                ad.LoadAd(adRequest);
            });
        }
		public void Cache()
		{
			WinRTPlugin.Dispatcher.BeginInvoke(delegate()
			{
				ad = new GoogleAds.InterstitialAd(unitID);
				ad.ReceivedAd += adReceived;
				ad.FailedToReceiveAd += ad_FailedToReceiveAd;
				ad.ShowingOverlay += ad_ShowingOverlay;
				ad.DismissingOverlay += ad_DismissingOverlay;
				ad.LeavingApplication += ad_LeavingApplication;

				var adRequest = new AdRequest();
				adRequest.ForceTesting = testing;
				ad.LoadAd(adRequest);
			});
		}
		public void Dispose()
		{
			if (ad != null)
			{
				ad = null;
			}
		}