Preload multiple Admob ads into an array? [duplicate]
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.
精彩评论