GoogleMobileAds.
Banner views occupy a spot within an app's layout.
Summary
They stay on screen while users are interacting with the app.
Inheritance
Direct Known Subclasses:GoogleMobileAds.Api.AdManager.AdManagerBannerView| Constructors and Destructors | |
|---|---|
| BannerView(string adUnitId, AdSize adSize, AdPosition position)Creates a banner view with a standard position.  | |
| BannerView(string adUnitId, AdSize adSize, int x, int y)Creates a banner view with a custom position.  | 
| Events | |
|---|---|
| OnAdClicked | ActionRaised when an ad is clicked.  | 
| OnAdFullScreenContentClosed | ActionRaised when the ad closed full-screen content.  | 
| OnAdFullScreenContentOpened | ActionRaised when an ad opened full-screen content.  | 
| OnAdImpressionRecorded | ActionRaised when an impression is recorded for an ad.  | 
| OnAdPaid | Action< AdValue >Raised when the ad is estimated to have earned money.  | 
| OnBannerAdLoadFailed | Action< LoadAdError >Raised when an ad fails to load into the banner view.  | 
| OnBannerAdLoaded | ActionRaised when an ad is loaded into the banner view.  | 
| Properties | |
|---|---|
| IsDestroyed | boolReturns true if Destroy() has been called.  | 
| Public functions | |
|---|---|
| Destroy() | voidDestroys the banner view.  | 
| GetAdUnitID() | stringReturns the ad unit ID.  | 
| GetHeightInPixels() | floatReturns the height of the banner view in pixels.  | 
| GetResponseInfo() | Returns the ad request response info or null if the ad is not loaded.  | 
| GetWidthInPixels() | floatReturns the width of the banner view in pixels.  | 
| Hide() | voidHides the banner view.  | 
| IsCollapsible() | boolIndicates whether the last loaded ad is a collapsible banner.  | 
| LoadAd(AdRequest request) | voidLoads an ad into the banner view.  | 
| SetPosition(AdPosition adPosition) | voidSets the position of the banner view using standard position.  | 
| SetPosition(int x, int y) | voidSets the position of the banner view using custom position.  | 
| Show() | voidShows the banner view.  |