IronSourceBanner

Last Updated On 2021-07-16

Version 1MinSDK 14Tutorial Video

The Banner is a rectangular, system-initiated ad that can be either static or animated, and is served in a designated area around your live app content. This ad unit supports ad placements as well as capping and pacing.


Properties

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

  • AppKey - it's a string 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.

AppKey

IronSource Banner AppKey


LargeBanner

Large Banner Size. Use when loading ads


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


RectangleBanner

Rectangle Banner Size. Use when loading ads


SmartBanner

Smart Banner Size. Use when loading ads


StandardBanner

Standard Banner Size. Use when loading ads


Visible

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



Methods

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

CreateCustomBanner

Custom Banner Size. width and height in dp. Use when loading ads

DestroyBannerAd

Method for DestroyBannerAd

LoadAd

Load a Banner Ad

LoadAdWithPlacement

Load a Banner Ad with a Placement Name

ValidateIntegration

Only to Validate if the Integration was Successful


Events

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

AdClicked

Ad Clicked

AdClosed

Ad Closed

AdDisplayed

Ad Displayed

AdFailedToLoad

Ad Failed To Load

AdLoaded

Ad Loaded

AdOpened

Ad Opened