在Android preloading RevMob广告 [英] Preloading RevMob Ad on Android

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

问题描述

我在寻找我的Andr​​oid应用程序内的方式来preLOAD RevMob横幅广告和插页广告?该广告可以在目前,这是方式为长的应用类型采取从5-30秒东西。

I'm looking for a way to preload RevMob Banner and Interstitial ads within my android app? The ads can take anything from 5-30 seconds at the moment, which is way to long for the type of app.

任何帮助是AP preciated。

Any help is appreciated.

推荐答案

如果您使用广告对象,你可以做一个preLOAD(的 RevMob API文档),并显示如下:

If you use the ad object you can do a preload (RevMob API Docs) and show like this:

Fullscreen fullscreen = revmob.createFullscreen(this);
if (fullscreen.isAdLoaded()) {
  fullscreen.show();
}

但显示广告是否已经加载只有将工作!

But the show only will work if the ad is already loaded!

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

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