Android 我是否应该在不同的活动中使用不同的 AdMob 广告单元 ID?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25596191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Should I use different AdMob Ad Units ID in different Activities?
提问by user1903
Should I use the same Ad Unit ID for all the ads in my app or should I get one ID per Activity?
我应该为应用中的所有广告使用相同的广告单元 ID,还是应该为每个 Activity 获取一个 ID?
回答by Nana Ghartey
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.
因此,如果您的应用仅包含横幅广告,则它只能有一个广告单元 ID。如果您的应用包含横幅广告和插页式广告,则它可以有两个广告单元 ID。
However, according to the official admob guide, YES! you can use one ID per activity:
但是,根据官方的 admob 指南,是的!您可以为每个活动使用一个 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.
广告单元 ID 是为您的应用中展示广告的位置提供的唯一标识符。如果您的应用有两个活动,例如,每个活动都显示一个横幅,则您需要两个广告单元,每个广告单元都有自己的 ID。
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.
为便于报告,请为每个应用程序使用不同的广告单元。这有助于您了解每个应用程序在 eCPM、请求和点击方面的表现。它将帮助您了解市场,根据需要调整或改进您的应用程序。
It's not against the policy if that's what you want. (Check this thread)
如果这是您想要的,这并不违反政策。(检查此线程)
回答by Touré Holder
Actually, according to the Admob for Android Guide, yes you should!
实际上,根据Admob for Android 指南,是的,您应该这样做!
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.?
广告单元 ID 是为您的应用中展示广告的位置提供的唯一标识符。如果您的应用有两个活动,例如,每个活动都显示一个横幅,则您需要两个广告单元,每个广告单元都有自己的 ID。?
回答by Mihai
I had the same concern and looked into the link Nana gave. This is one of the messagesthat caught my eye:
我也有同样的担忧,并查看了 Nana 提供的链接。这是引起我注意的消息之一:
Hi Sonic,
You're still allowedto do this, but we recommend against it, and if you link an app then house ads might not work. We recommend creating a different Ad Unit ID for every placement you have (which means you'll probably have multiple per app).
Hope this helps!
Amy Quispe
嗨,索尼克,
您仍然可以这样做,但我们建议您不要这样做,如果您链接应用程序,则自家广告可能不起作用。我们建议为您拥有的每个展示位置创建不同的广告单元 ID(这意味着每个应用可能有多个)。
希望这可以帮助!
艾米·奎斯佩
IMHO, you should have a different ad unit for each BannerView you display.
恕我直言,您应该为每个显示的 BannerView 设置不同的广告单元。
回答by Feisal Aswad
I think there are many theories about this issue But my suggestion to use multi ads unit Because admob Disterbute ads for every unit by equal And if you have multi ads your probabilty to have ads will be bigger
我认为关于这个问题有很多理论 但是我的建议是使用多广告单元 因为 admob 每个单元的广告均等分布 如果你有多个广告,你有广告的概率会更大