问题描述
我应该为我的应用中的所有广告使用相同的广告单元 ID,还是应该为每个活动获取一个 ID?
Should I use the same Ad Unit ID for all the ads in my app or should I get one ID per Activity?
推荐答案
您可以为应用内的所有横幅广告使用一个广告单元 ID,而为同一应用内的所有插页式广告使用不同的广告单元 ID.
You can use one Ad Unit ID for all banner ads within your app and a different Ad Unit ID for all interstitial ads within the same app.
因此,如果您的应用仅包含横幅广告,则它只能有一个广告单元 ID.如果您的应用包含横幅广告和插页式广告,则它可以有两个广告单元 ID.
Thus, if your app contains only banner ads, it can have only one Ad Unit ID. If your app contains banner and interstitial ads, it can have two Ad Unit IDs.
但是,根据官方的 admob 指南,是的!您可以为每个活动使用一个 ID:
However, according to the official admob guide, YES! you can use one ID per activity:
广告单元 ID 是为您的应用中展示广告的位置提供的唯一标识符.如果您有一个包含两个活动的应用程序,例如,每个活动都显示一个横幅,您需要两个广告单元,每个都有自己的 ID.
An Ad Unit ID is a unique identifier given to the places in your app where ads are displayed. If you have an app with two activities, for example, each displaying a banner, you need two ad units, each with its own ID.
为了生成报表,请为每个应用使用不同的广告单元.这有助于您了解每个应用程序在 eCPM、请求和点击方面的表现.它将帮助您了解市场,根据需要调整或改进您的应用程序.
For reporting sake, use different ad unit for each application. This helps you know how each application is performing in regards to eCPMs, requests and clicks. It will help you understand the market, adjust or improve your apps as needed.
如果这是您想要的,这并不违反政策.(查看这个话题)
It's not against the policy if that's what you want. (Check this thread)
这篇关于我是否应该在不同的活动中使用不同的 AdMob 广告单元 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!