GoogleMobileAds. Api. BannerView
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
|
Action
Raised when an ad is clicked.
|
OnAdFullScreenContentClosed
|
Action
Raised when the ad closed full-screen content.
|
OnAdFullScreenContentOpened
|
Action
Raised when an ad opened full-screen content.
|
OnAdImpressionRecorded
|
Action
Raised 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
|
Action
Raised when an ad is loaded into the banner view.
|
Properties |
|
---|---|
IsDestroyed
|
bool
Returns true if Destroy() has been called.
|
Public functions |
|
---|---|
Destroy()
|
void
Destroys the banner view.
|
GetAdUnitID()
|
string
Returns the ad unit ID.
|
GetHeightInPixels()
|
float
Returns the height of the banner view in pixels.
|
GetResponseInfo()
|
Returns the ad request response info or null if the ad is not loaded.
|
GetWidthInPixels()
|
float
Returns the width of the banner view in pixels.
|
Hide()
|
void
Hides the banner view.
|
IsCollapsible()
|
bool
Indicates whether the last loaded ad is a collapsible banner.
|
LoadAd(AdRequest request)
|
void
Loads an ad into the banner view.
|
SetPosition(AdPosition adPosition)
|
void
Sets the position of the banner view using standard position.
|
SetPosition(int x, int y)
|
void
Sets the position of the banner view using custom position.
|
Show()
|
void
Shows the banner view.
|