UnityBannerAd
Last Updated On 2021-07-16
Version 1MinSDK 7Tutorial Video
Banner Ad is a rectangle ad placed usually at the top or bottom of the Screen. This ad is suited for beginner developers to monetize their apps.
SDK Version: 3.7.2
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.
- 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.
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
Visible
Specifies whether the UnityBannerAd should be visible on the screen. Value is true if the UnityBannerAd is showing and false if hidden.
Methods
You can set the below method blocks in the blocks section of the builder.
DestroyAd
Destroy a banner ad thereby hiding it
InitializeSdk
Initialize the SDK. Set testMode to true to see test ads
LoadAd
Load a Banner Ad
Events
You can set the below event blocks in the blocks section of the builder.
AdClicked
Ad Clicked by the User
AdFailedToLoad
Ad Failed To Load
AdHidden
Ad Hidden
AdLoaded
Ad Loaded
AdShown
Ad Displayed to the User
AdUnLoaded
Ad Unloaded