使用AdMob展示广告

AdMob logo

在你的游戏中使用ADMOB向你的玩家显示ADS和真实视频

1) 创建你的AdMob账户

Go to AdMob website and create an account. Then, create a new app from the AdMob interface and an ad unit. Note the identifiers for both the app and the ad unit, as they will be used in your game.

Create an app and an ad unit in AdMob

2) 在GDevelop中配置AdMob

In GDevelop, open the properties of your game and paste the AdMob app id. This acts as the identification that allows AdMob to serve ads in your app.

Set up AdMob app id in GDevelop

3) 事件触发广告显示

Add events in your game to load and show the ad when needed (this can be when a level is successfully completed for example). Paste the ad unit identifier into the parameters of the action. You can also enter "test" for loading a test ad.

Add events to display AdMob ads.

4) 在 Android 上发布您的游戏

You can test and publish your game on Android directly from GDevelop. In the editor, open your game and then the Export window. Choose Android, click on Export and wait a few minutes.

Export to Android from GDevelop in a few clicks

Professional games with GDevelop

Create your ad-supported game with GDevelop. Bundled with tutorials and examples.