Home





Banner Ads

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


Methods

IsBannerAdReady

boolean IsBannerAdReady()

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.

IsBannerAdReadyForPlacement

boolean IsBannerAdReadyForPlacement(
    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.

ShowBannerAdWithPosition

void ShowBannerAdWithPosition(
    text position
)

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

Parameters:

text  position - Specifies the position of this ad on the screen. Use either "top" or "bottom".

ShowBannerAdWithPositionAndPlacement

void ShowBannerAdWithPositionAndPlacement(
    text position,
    text placement
)

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

Parameters:

text  position - Specifies the position of this ad on the screen. Use either "top" or "bottom".

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