开发者

Preload multiple Admob ads into an array? [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜