简体   繁体   English

由Android的Pygame Subset制作的Android应用中的Admob集成

[英]Admob Integration in an Android app which is made by Pygame Subset for Android

i'm looking for a some "simple" step-by-step instructions (if possible) on how to integrate Google's AdMob Service into my Android App. 我正在寻找一些“简单”的分步说明(如果可能),以了解如何将Google的AdMob服务集成到我的Android应用中。

Problem is: I do not understand java code, which is why i programmed my App in Python using the "Pygame Subset for Android". 问题是:我不理解Java代码,这就是为什么我使用“ Android Pygame子集”在Python中对我的App进行编程的原因。

I have the "Google Play Services" and "SDK Platform Tools" downloaded and installed (because Google Instructions said, that from now on, AdMob is not a stand-alone SDK anymore, but part of the Google Play Services) through the "Android SDK Manager". 我已经通过“ Android”下载并安装了“ Google Play服务”和“ SDK平台工具”(因为Google说明说,从现在开始,AdMob不再是独立的SDK,而是Google Play服务的一部分) SDK Manager”。

I created an account at AdMob and have my unique Ad-ID, but i am not sure where to put them into my App. 我在AdMob创建了一个帐户,并拥有自己的唯一广告ID,但是我不确定将其放入应用程序的位置。 From what is understood is, that there a multiple solutions like editing the "PythonActitiv.java" inside the PGS4A folder or building and ad.xml. 据了解,存在多种解决方案,例如在PGS4A文件夹中编辑“ PythonActitiv.java”或building和ad.xml。

What do you think could be the "best" solution for me to integrate AdMob in my Pygame App? 您认为什么是将AdMob集成到我的Pygame应用中的“最佳”解决方案?

Any help would be great :) 任何帮助将是巨大的:)

Try looking at this stackoverflow question, the questioner never replied to the answer so it may be what you are looking for. 尝试查看这个 stackoverflow问题,发问者从未答复过答案,所以这可能正是您要寻找的。

Also take a look at this fork of pygame subset for android with admob integration. 还可以看看带有admob集成的android pygame子集的这个分支。 I have not used it myself personally, so I am not sure if it works, but it is worth a try looking at. 我本人还没有亲自使用过它,所以不确定它是否有效,但是值得一试。

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

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