简体   繁体   English

如何在我的 libGDX 应用程序上添加插页式谷歌广告?

[英]How to add interstitial google ads on my libGDX application?

I am a beginner programmer.我是一个初级程序员。 I developed a game using libGDX and I have versions for android and desktop.我使用 libGDX 开发了一个游戏,我有安卓和桌面版本。 I would like to add Google ads on my android part of the game, but unfortunately I do not know how to do that.我想在游戏的 android 部分添加 Google 广告,但不幸的是我不知道该怎么做。 I tried to follow their official tutorial and some over tutorials I found, but without any success.我试图按照他们的官方教程和我发现的一些教程进行操作,但没有任何成功。 I do not know android development.我不知道android开发。 I know only libGDX.我只知道 libGDX。 I created the game by extending the Game class and implementing the Screen interface.我通过扩展 Game 类并实现 Screen 接口来创建游戏。 I would like to know how to implement an interstitial ad between two Screens chosen by me.我想知道如何在我选择的两个屏幕之间实施插页式广告。 Thank you!谢谢!

您应该查看本教程 - https://github.com/libgdx/libgdx/wiki/Admob-in-libgdx ,它的解释非常好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM