简体   繁体   English

在加载活动之前加载Admob广告,以便它们立即显示而不是在3-5秒后显示?

[英]Load Admob ads before an activity is loaded, so that they appear instantly instead of after 3-5 seconds?

The way my app is designed, I load ads on the main menu, a "ending" page, and a hopefully (if I can get this resolved) on a page that pops up for 5 seconds before it continues automatically to another. 我的应用程序的设计方式,我在主菜单上加载广告,一个“结束”页面,并希望(如果我可以解决这个问题)在一个页面弹出5秒后再自动继续到另一个页面。

Specifically for the automatically loaded page that closes after 5 seconds, is there a way that I can load the ad in the background, and have it instantly available for when I change activities? 特别是对于在5秒后关闭的自动加载的页面,我是否可以在后台加载广告,并在我更改活动时立即使用它? If I just have the normal code in there, it usually doesn't have enough time to load before it continues. 如果我只有正常的代码,它通常没有足够的时间加载它继续。

I've tried tackling this problem on BREW handsets but they are far less capable and there was no way I could realistically solve this problem. 我已经尝试在BREW手机上解决这个问题,但它们的能力要差得多,而且我无法真实地解决这个问题。 Our solution was to show a HTML browser as a screen in our application, and while it didn't load 100% of the time for all attempts it still was able to generate a fair amount of revenue. 我们的解决方案是在我们的应用程序中将HTML浏览器显示为一个屏幕,虽然它没有100%的时间加载所有尝试,但它仍然能够产生相当大的收入。

I haven't tried this on Android. 我没有在Android上试过这个。

Can you create a WebView ahead of time, fetch the AdMob ad as if it were embedded in a webpage, and reveal the page inside the WebView? 您是否可以提前创建WebView ,将AdMob广告提取为嵌入网页,并在WebView中显示该页面? This is instead of using the AdMob SDK. 这不是使用AdMob SDK。

What's the point of showing an Ads on a page that pops up for only 5 seconds? 在一个只弹出5秒的页面上显示广告有什么意义? Most of the revenue comes from clicks and on such a short time, don't expect any click excerpt maybe some accidental. 大部分收入来自点击并在如此短的时间内,不要指望任何点击摘录可能是偶然的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM