AdmobBannerAd

Last Updated On 2021-07-16

Version 3MinSDK 16Tutorial Video

Banner ads occupy a spot within an app's layout, either at the top or bottom of the device screen. They stay on screen while users are interacting with the app, and can refresh automatically after a certain period of time.If you're new to mobile advertising, they're a great place to start.


Properties

You can set the below properties in the UI part of the builder.

  • Consent - it's a boolean value which is set to false by default.
  • HeihMargin - it's a four value which is set to 0,0,0,0 by default.
  • HeihPadding - it's a four value which is set to 0,0,0,0 by default.
  • MarginBottom - it's a non negative float value which is set to 0 by default.
  • MarginLeft - it's a non negative float value which is set to 0 by default.
  • MarginRight - it's a non negative float value which is set to 0 by default.
  • MarginTop - it's a non negative float value which is set to 0 by default.
  • PaddingBottom - it's a non negative float value which is set to 0 by default.
  • PaddingLeft - it's a non negative float value which is set to 0 by default.
  • PaddingRight - it's a non negative float value which is set to 0 by default.
  • PaddingTop - it's a non negative float value which is set to 0 by default.
  • TestMode - it's a boolean value which is set to false by default.
  • Visible - it's a visibility value which is set to true by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

AdSizeBanner

AdSize for LoadBanner Ad Function


AdSizeFullBanner

AdSize for LoadBanner Ad Function


AdSizeLargeBanner

AdSize for LoadBanner Ad Function


AdSizeLeaderBoard

AdSize for LoadBanner Ad Function


AdSizeMediumRectangle

AdSize for LoadBanner Ad Function


AdSizeSmartBanner

AdSize for LoadBanner Ad Function


Consent

User Consent for GDPR


MarginBottom

Property for MarginBottom


MarginLeft

Property for MarginLeft


MarginRight

Property for MarginRight


MarginTop

Property for MarginTop


PaddingBottom

Property for PaddingBottom


PaddingLeft

Property for PaddingLeft


PaddingRight

Property for PaddingRight


PaddingTop

Property for PaddingTop


TestMode

Test Ads


Visible

Specifies whether the AdmobBannerAd should be visible on the screen. Value is true if the AdmobBannerAd is showing and false if hidden.



Methods

You can set the below method blocks in the blocks section of the builder.

CreateCustomAdSize

AdSize for LoadBanner Ad Function

LoadBannerAd

Load a Admob Banner Ad


Events

You can set the below event blocks in the blocks section of the builder.

AdClicked

Banner Ad Clicked

AdClosed

Banner Ad Closed

AdFailedToLoad

Banner Ad Failed To Load

AdImpression

Banner Ad Impression Logged

AdLeftApplication

Banner Ad Left Application. Probaby User Clicked and Opened it

AdLoaded

Banner Ad Loaded

AdOpened

Banner Ad Opened