FacebookBannerAd

Last Updated On 2021-07-16

Version 2MinSDK 7Tutorial Video

A banner is a small bar ad that appears at the bottom or top of your content. Usually sized 320 x 50.
SDK Version: 6.5.0


Properties

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

  • 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.

Height

Specifies the vertical height of the FacebookBannerAd, measured in pixels.


HeightPercent

Specifies the vertical height of the FacebookBannerAd as a percentage of the height of the Screen.


LargeBanner

Banner Ad Size


MarginBottom

Property for MarginBottom


MarginLeft

Property for MarginLeft


MarginRight

Property for MarginRight


MarginTop

Property for MarginTop


MediumBanner

Banner Ad Size


PaddingBottom

Property for PaddingBottom


PaddingLeft

Property for PaddingLeft


PaddingRight

Property for PaddingRight


PaddingTop

Property for PaddingTop


StandardBanner

Banner Ad Size


TestMode

Test Mode


Visible

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


Width

Specifies the horizontal width of the FacebookBannerAd, measured in pixels.


WidthPercent

Specifies the horizontal width of the FacebookBannerAd as a percentage of the width of the Screen.



Methods

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

LoadBannerAd

Method for LoadBannerAd


Events

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

AdClicked

Ad Clicked by the User

AdFailedToDisplay

Ad Failed to Display

AdFailedToLoad

Ad Failed to Load

AdImpression

Ad Impression Logged

AdLoaded

Ad Loaded