How can Ads be added to a game

How can Ads be added to a game.

1 Like

Hey @robweb - welcome to the forum :slight_smile:

You can add AdMob display ads to your game using the “Ad” block, but they only display on mobile (iOS or Android) exported games.

use the ad behavior (there is one

oh yeah Welcome! @robweb

Thanks all. But how would I add the Ad to the code/level so that when a level is over the Ad will play?

Ads only work on exported games, use the test mode in the behavior.
Create an admod account and use the links for the ads in the admod behavior.

Is this the correct way to do it.

@robweb there are a couple of minor issues there. The Ad is connected to the “get” output instead of the “go”. A bigger problem is that the entire level will be unloaded when the levels change, so the Ad may get cleaned up.

A better approach would probably be to add it to the start of the next level instead of the end of this one. Just use a “Once” block, and it will open the Ad when it loads.

Thanks, is this the way it should be?

1 Like

Yep, that should work just fine :+1:

Thank you for your help