android - 如何在 Android 中正确设置 admob 以区分广告收入

标签 android xml admob

我想确定我的应用程序产生的收入中有哪一部分是以插页式广告的形式出现的,还是以普通广告 View 的形式出现的。

我的 list 文件中有以下两行代码,其中 x 是我的发布者 ID(它们完全相同):

 <meta-data android:value="xxxxxxxxxxxxxxx" android:name="ADMOB_PUBLISHER_ID" />
 <meta-data android:value="xxxxxxxxxxxxxxx" android:name="ADMOB_INTERSTITIAL_PUBLISHER_ID" />

首先,我是通过 list 文件正确设置它以生成我想要的数据,还是我需要做一些不同的事情?

其次,我如何找出哪种广告类型效果更好?

谢谢。

最佳答案

文档似乎表明您需要设置一个单独的 pubid,以便可以区别对待它们...

The richer, more heavyweight nature of InterstitialAd is reflected by its definition not as a View but rather an Object requiring more distinct instantiation, load and display steps.

Usage is nevertheless very similar to AdView:

Import com.google.ads.*
Declare the instance
Create it, specifying an AdMob Publisher ID distinct from any used for banners

http://code.google.com/mobile/ads/docs/android/advanced.html

关于android - 如何在 Android 中正确设置 admob 以区分广告收入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4221383/

相关文章:

android - GooglePlayServices Admob 问题 : "Failed to load ad : 0"

android - 在水平 RecyclerView 中添加垂直列

android - Android 上的 UI 压力测试

android - 从代码而非 xml 创建选择器时出现意外结果

java - 没有名为 "EntityManager"Java 的 "firstOne"的持久性提供程序

python - 什么是适用于 Python 的良好 XML 流解析器?

java - BuildConfig.DEBUG 与 ApplicationInfo.FLAG_DEBUGGABLE

python导入xml不包含xml.etree.ElementTree

admob - admob 中的插页式超时是什么意思?

admob - Google Admob 和 WINdows 10 通用应用