Admob在多个活动中添加 [英] Admob add within multiple activities

查看:84
本文介绍了Admob在多个活动中添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在包含15个以上活动的android应用程序中添加Admob。我的问题是,考虑到我无法扩展任何 BaseActivity(出于各种原因),哪种解决方案是最好的解决方案,如以下示例所示:关于多项活动的Admob?,我不想违反任何有关制定添加请求及其用途的规则的协议。

I am trying to add Admob in my android application which consists of over 15 activities. My question is which solution is the best one, considering that I can't extend any "BaseActivity" (for various reasons), as presented in this example: Admob on Multiple Activities? and I don't want to violate any agreements regarding rules making adds requests and their use.

到目前为止,我已经创建了一个包含com.admob.android.ads.AdView
的admob.xml文件,并且我在每次活动中加载的每个布局 .xml文件中都使用了包含布局。

So far i've created a file admob.xml containing the com.admob.android.ads.AdView and I use "include layout" in each layout ".xml" file loaded in every activity.

这样可以吗?我对Google政策或类似问题有任何疑问吗?还是这种实施会使我损失潜在的收入?

Is this OK? Will I have any problems with Google policies or something like that? Or will this implementation cause me losing potential revenue?

推荐答案

这是一个合理的解决方案,符合AdMob政策。只要确保您在同一页面上没有两个横幅即可。

That is a reasonable solution and complies with AdMob policies. Just make sure you don't have two banners on the same page.

这篇关于Admob在多个活动中添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆