有没有办法在Android preLOAD AdMob的广告? [英] Is there a way to preload AdMob ads on Android?

查看:188
本文介绍了有没有办法在Android preLOAD AdMob的广告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个AdMob的广告在对话(一个视图我创建看起来像一个,因为广告不适合在一个正常的对话),在我的应用程序。它通常需要4或5秒广告加载之前,并且由于它是在对话的用户很可能会点击一个按钮广告加载之前(关闭对话框)。
有没有一种方法可以让我preLOAD的广告,让他们将尽快显示含有视图中创建自己的?

I have a AdMob ad in a "dialog" (a View I created to look like one, because ads will not fit in a normal Dialog) in my app. Usually it takes about 4 or 5 seconds before the ad loads, and since it's in a "dialog," the user will most likely click a button (closing the dialog) before the ad loads.
Is there a way I can preload the ads so that they will show as soon as their containing View is created?

推荐答案

我已经被使用的一个AD浏览报多的时间,并在多个活动做了

I have done it by use one adview multiple time and in multiple activity

这只是装载一次,你可以用它在任何你想要的,

It just load once, and you can use it where ever you want,

这将刷新其给定的刷新率。

It will refresh on its given refresh rate.

演示给出这里

你可能需要一些修改,但实际的想法实现。

you may need some modification but actual idea is implemented.

这篇关于有没有办法在Android preLOAD AdMob的广告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆