Using In-Game Ads

Using in-game advertisements to monetize your game.

Choose your operating system:

Windows

macOS

Linux

In-game advertisements enable you to display ads to players of your game on mobile platforms. This provides a means of monetizing your game while allowing it to remain completSharingAndReleasing/Mobile/Services Android AdMob

Configuration

See the appropriate platform-specific page below for details on configuring in-game advertisements for each platform:

Showing the Ad Banner

The Show Ad Banner function is used to display an ad banner in your game. Call it somewhere in the logic where you want to show an ad, such as when the main menu is shown.

In Blueprints:

The example below is from the Unreal Match 3 sample game, which displays an ad banner when the victory/defeat screen is shown using the Construct event of that Widget Blueprint:

show_ad.png

See the Show Ad Banner reference for more information on the node.

Hiding the Ad Banner

The Hide Ad Banner functions hides the visible ad banner. Call it when you no longer want the ad to be displayed, such as when you exit the main menu.

In Blueprints:

The example below is from the Unreal Match 3 sample game, which hides the ad banner when the victory/defeat screen is exited using the Destruct event of that Widget Blueprint:

hide_ad.png

See the Hide Ad Banner reference for more information on the node.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss