如何让我的广告在 Android 应用中更快地出现?
我已经在我的一款 Android 应用程序中放入了一些广告,我只是在我的设备上对其进行测试。
当我加载应用程序时,广告可能需要大约 5-10 秒才能显示。实际上,那时用户可能已经转移到另一个屏幕上,因此永远不会看到它们。
有什么办法可以立即显示广告吗?如果没有,我如何才能及时显示广告以便用户看到它们(并可能点击)?
我可以在按钮上添加一些线程延迟,以阻止它们执行任何操作,直到广告显示,但这非常肮脏......
I've put some ads into one of my android apps and I'm just testing it out on my device.
When I load up my app, it can take around 5-10 seconds for the ad to display. Realistically, the user would have moved onto another screen by then so would never see them.
Is there any way I can have the ad show instantly? If not, how can I ever get ads to display in time for the user to see them (and potentially click)?
I could add some thread delaying on the buttons to stop them doing anything until the ad shows, but that's incredibly dirty...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在应用程序上添加启动屏幕(主屏幕布局上的 ImageView),并在收到添加消息(AdMob 和大多数广告提供商上有广告侦听器)或没有广告可显示时使其消失。至于其他屏幕,除了在广告展示之前显示
ProgressDialog
之外,您无能为力,但您的用户不会喜欢它。Add a splash screen on the application (ImageView over the layout of your main screen), and make it disappear when you receive an add (there's an ad listener on AdMob and most ad providers) or if there's no ad to show. As for the other screens, there's not much you can do other than showing a
ProgressDialog
until the ad shows, but your users won't like it.