예제 #1
0
        void RemoveAdFromWindow()
        {
            if (adViewWindow != null)
            {
                if (adOnWindow)
                {
                    navController.View.Subviews.First().Frame = new RectangleF(0, 0, 320, UIScreen.MainScreen.Bounds.Height);
                    adViewWindow.RemoveFromSuperview();
                }
                adOnWindow = false;

                // You need to explicitly Dispose GADBannerView when you dont need it anymore
                // to avoid crashes if pending request are in progress
                adViewWindow.Dispose();
                adViewWindow = null;
            }
        }
예제 #2
0
 public void adView_didFailToReceiveAdWithError_(GADBannerView adView, NSError error)
 {
     LOG("adView_didFailToReceiveAdWithError_");
     LOG(error.LocalizedDescription.ToString());
     adView.RemoveFromSuperview();
 }