Home





Banner Ads

Banner is a rectangle filled with an advertising content, displayed on the screen without interrupting the flow of your app.


Blocks

is banner ad ready

boolean is banner ad ready()

Check if an ad from any of the included SDK providers is ready to be shown.

Return Value:

Returns true if any ad is ready, false otherwise. When app is not Enhanced, always returns true.

is banner ad ready for placement

boolean is banner ad ready for placement(
    text placement
)

Check if an ad from any of the included SDK providers is ready to be shown.

Parameters:

text  placement - Specifies the internal placement of the ad (from the Enhance mediation editor).

Return Value:

Returns true if any ad is ready, false otherwise. When app is not Enhanced, always returns true.

show banner ad with position

void show banner ad with position(
    position
)

Display an ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:

position - Specifies the position of this ad on the screen. A dropdown list will show you available options.

show banner ad with position and placement

void show banner ad with position and placement(
    position,
    text placement
)

Display an ad if any is currently available. The ad provider is selected based on your app's mediation settings.

Parameters:

position - Specifies the position of this ad on the screen. A dropdown list will show you available options.

text  placement - Specifies the internal placement of the ad (from the Enhance mediation editor).

hide banner

void hide banner()

Hide the banner ad which is currently visible, if any.