MoPubBanner

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

Component for MoPub Banner Video Ads


Properties

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

  • AdUnitId - it's a text value which is set to blank 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.
  • 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.

AdSize

Ad size

setMoPubBanner.AdSize to 

AdUnitId

Set Ad Unit Id

setMoPubBanner.AdUnitId to 

Height

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

setMoPubBanner.Height to 
MoPubBanner.Height

HeightPercent

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

setMoPubBanner.HeightPercent to 

MarginBottom

Property for MarginBottom

setMoPubBanner.MarginBottom to 

MarginLeft

Property for MarginLeft

setMoPubBanner.MarginLeft to 

MarginRight

Property for MarginRight

setMoPubBanner.MarginRight to 

MarginTop

Property for MarginTop

setMoPubBanner.MarginTop to 

PaddingBottom

Property for PaddingBottom

setMoPubBanner.PaddingBottom to 

PaddingLeft

Property for PaddingLeft

setMoPubBanner.PaddingLeft to 

PaddingRight

Property for PaddingRight

setMoPubBanner.PaddingRight to 

PaddingTop

Property for PaddingTop

setMoPubBanner.PaddingTop to 

Visible

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

setMoPubBanner.Visible to 
MoPubBanner.Visible

Width

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

setMoPubBanner.Width to 
MoPubBanner.Width

WidthPercent

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

setMoPubBanner.WidthPercent to 


Methods

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

LoadAd

Load banner ad

callMoPubBanner.LoadAd

Events

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

AdClicked

Event for AdClicked

whenMoPubBanner.AdClickeddo
AdCollapsed

Event for AdCollapsed

whenMoPubBanner.AdCollapseddo
AdExpanded

Event for AdExpanded

whenMoPubBanner.AdExpandeddo
AdFailed

Event for AdFailed

whenMoPubBanner.AdFailed error do
AdLoaded

Event for AdLoaded

whenMoPubBanner.AdLoadeddo