protected override void OnDestroy() { if (m_AdView != null) { AdMobHelper.Destroy(m_AdView); } base.OnDestroy(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); m_AdView = FindViewById(Resource.Id.adView); var button = FindViewById <Button>(Resource.Id.ButtonRefreshAd); button.Click += ((sender, args) => AdMobHelper.LoadAd(m_AdView)); }