问题描述
我有一个应用程序,我想在同一屏幕上显示多个广告.
I have one app in which I want to display multiple ads in same screen.
应用有一个回收站视图 &这是可滚动的 200 多个项目.在每 6 个项目之后,我计划显示来自 admob 的广告.我们可以使用 admob
来做到这一点吗?
App has one recycler view & which is scrollable more than 200 items. After in each 6 items, I have planed display the ads from admob. Are we able to do this using admob
.?
我尝试过使用单个广告单元 ID,所有显示的广告都是相同的.如何以更安全的方式在同一屏幕上获取不同的广告 &没有违反政策?
I have tried with single ad unit id, with this all displaying ads are same. How to get different ads in same screen with more secure way & without violating policies ?
请帮忙!!
推荐答案
您可以在同一个 Activity 中拥有多个广告,但在任何给定时间只能在屏幕上显示一个.如果您使用 RecyclerView 并将广告与内容混合,只需确保广告之间有足够的空间,以免它们共享屏幕.
You can have more than one ad in the same Activity, but only one should be on the screen at any given time. If you're using a RecyclerView and mixing ads with content, just make sure you have enough space between ads that they don't share the screen.
由于不同设备(尤其是手机和平板电脑)的显示尺寸差异很大,您应该检查设备尺寸并使用它们来决定广告的间距.
Because display sizes vary so much from device to device (especially from phone to tablet), you should check the device dimensions and use them to decide how far apart to space your ads.
这篇关于我们可以使用 AdMob 在同一屏幕上显示多个广告吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!