RealDocs

UKismetSystemLibrary::ShowAdBanner

function Engine Blueprint Since 4.0
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintCallable

Description

Shows a mobile ad banner (iAd on iOS, AdMob on Android) overlaid on top of the game view without resizing it.

Caveats & Gotchas

  • iOS and Android only — a no-op on desktop, console, and other platforms.
  • Requires the ad network/IDs to already be configured in project platform settings; AdIdIndex is an index into that configured list, not an arbitrary ad unit string.
  • The banner overlays the view rather than resizing the viewport, so it can obscure UI at the top or bottom edge depending on bShowOnBottomOfScreen.

Signature

static void ShowAdBanner(int32 AdIdIndex, bool bShowOnBottomOfScreen)

Parameters

Name Type Description Default
AdIdIndex int32 Index of the ad unit ID to select, from the platform's configured ad IDs.
bShowOnBottomOfScreen bool If true, the banner is shown at the bottom of the screen; otherwise at the top.

Return Type

void

Example

Show a banner ad at the bottom of the screen C++
UKismetSystemLibrary::ShowAdBanner(0, true);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.