0

I'm using InMobi for displaying banners in my game - the ads will need to be turned off when the actual game starts (they only display on menu screens and when the game is paused) and I'm unsure how to do this.

With other networks I use/have used (including MobFox/AdMob), I could do something like this:

banner.pause();
banner.setVisibility(View.GONE);

This would hide the banners and stop requests.

However, in the InMobi SDK, there are no such methods (pause/resume).

If I set the visibility, the banners do disappear, but they keep refreshing (currently set to 60 seconds). This is no good. Requests/refreshes should most definitely, stop when the banners are not visible.

InMobi does have a .setEnabled(); which takes a boolean, but this does absolutely nothing.

Anyone who has used/is using InMobi, I would appreciate a point in the right direction.

4

1 回答 1

1

尝试将 autorefresh 设置为 0 以禁用自动请求。当您准备好请求广告时,手动请求一个或重新启用自动刷新,刷新值至少为 20 秒,或者最好为横幅广告 60 秒

于 2015-09-12T08:06:04.213 回答