开发者

Preload multiple Admob ads into an array? [duplicate]

开发者 https://www.devze.com 2023-04-12 03:52 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Is there a way to preload AdMob ads on Android?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Is there a way to preload AdMob ads on Android?

I've got a gallery of textviews, and I allow the user to flip between them. Each one shows a different Admob advertisement. The only problem is that there is a delay. It takes a few seconds for the Goo开发者_如何学Gogle ad to show up. Does anyone know how I could populate an array of ads upon app startup, asynchronously?


From the AdMob content guidelines:

Ads should not be pre-cached, cached, or stored in any fashion. All ads should be requested dynamically and, on mobile sites, refreshed when the page is refreshed.

And from a technical perspective, the SDK is written in such a way to try to not let you do this. Banners are displayed as soon as the request is successful, and moving the AdView around in your layout is messy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号