private void ShowBaiduAdIn(ViewGroup adContainer) { BDBannerAd banner = new BDBannerAd(this, "Z03uBILZVtfZ0NxKfgc6yFDT", "QLD7hWvVAxEYCKNwDSCanemk"); banner.SetAdSize(BDBannerAd.Size320x50); banner.AdvertisementViewDidShow += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementViewDidShow)); }; banner.AdvertisementDataDidLoadFailure += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementDataDidLoadFailure)); }; banner.AdvertisementDataDidLoadSuccess += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementDataDidLoadSuccess)); }; banner.AdvertisementViewDidClick += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementViewDidClick)); }; banner.AdvertisementViewWillStartNewIntent += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementViewWillStartNewIntent)); }; adContainer.AddView(banner); }
private void ShowBaiduAdIn(ViewGroup adContainer) { BDBannerAd banner = new BDBannerAd(this, "Z03uBILZVtfZ0NxKfgc6yFDT", "QLD7hWvVAxEYCKNwDSCanemk"); banner.SetAdSize(BDBannerAd.Size320x50); banner.AdvertisementViewDidShow += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementViewDidShow)); }; banner.AdvertisementDataDidLoadFailure += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementDataDidLoadFailure)); }; banner.AdvertisementDataDidLoadSuccess += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementDataDidLoadSuccess)); }; banner.AdvertisementViewDidClick += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementViewDidClick)); }; banner.AdvertisementViewWillStartNewIntent += (a, b) => { System.Diagnostics.Debug.WriteLine(nameof(BDBannerAd.AdvertisementViewWillStartNewIntent)); }; adContainer.AddView(banner); }