间质的InMobi广告没有得到Android的显示 [英] InMobi interstitial ads are not getting displayed android

查看:614
本文介绍了间质的InMobi广告没有得到Android的显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过以下提及的说明的InMobi插页式广告整合到Android应用程序的这里

下面是code我在活动课纳入显示插页式广告。

我没有得到任何异常,但我每次运行code,回调方法的 onInterstitialFailed 的被称为显示信息的的广告请求是成功的,但没有广告被发现。

期待的响应/解决方案

 间质性=新IMInterstitial(这一点,
                我提到了PROPERTY_ID);
        interstitial.loadInterstitial();
interstitial.setIMInterstitialListener(新IMInterstitialListener(){            @覆盖
            公共无效onShowInterstitialScreen(IMInterstitial为arg0){
                Log.i(onShowInterstitialScreen,内部);
            }            @覆盖
            公共无效onLeaveApplication(IMInterstitial为arg0){
                Log.i(onLeaveApplication,内部);
            }            @覆盖
            公共无效onDismissInterstitialScreen(IMInterstitial为arg0){
                Log.i(onDismissInterstitialScreen,内部);
            }            @覆盖
            公共无效onInterstitialLoaded(IMInterstitial为arg0){                如果(interstitial.getState()== IMInterstitial.State.READY){
                    Log.i(内部间质性就绪状态,准备好了);
                    interstitial.loadInterstitial();
                    interstitial.show();
                }            }            @覆盖
            公共无效onInterstitialInteraction(IMInterstitial间隙,
                    地图<字符串,字符串> PARAMS){
                Log.i(onInterstitialInteraction,内部);
            }            @覆盖
            公共无效onInterstitialFailed(IMInterstitial为arg0,
                    IMError code ARG1){
                Log.i(onInterstialFailed,失败+ ARG1);
            }
        });


解决方案

我对工作的InMobi

您应该叫

interstitial.loadInterstitial()在onInterstitialFailed onInterstitialLoaded()调用回。

而不是

让我知道,如果这个工程。
此外,你可以给我你的财产ID吗?

I tried integrating InMobi interstitial ad to my android application by following the instructions mentioned here.

Below is the code I have incorporated in my activity class for displaying interstitial ads.

I get no exceptions but every time I run the code, the callback method onInterstitialFailed gets called displaying the message "The ad request was successful but no ad was found".

Looking forward to responses/solutions

interstitial = new IMInterstitial(this,
                "I mention the property_id");
        interstitial.loadInterstitial();
interstitial.setIMInterstitialListener(new IMInterstitialListener() {

            @Override
            public void onShowInterstitialScreen(IMInterstitial arg0) {
                Log.i("onShowInterstitialScreen", "inside");
            }

            @Override
            public void onLeaveApplication(IMInterstitial arg0) {
                Log.i("onLeaveApplication", "inside");
            }

            @Override
            public void onDismissInterstitialScreen(IMInterstitial arg0) {
                Log.i("onDismissInterstitialScreen", "inside");
            }

            @Override
            public void onInterstitialLoaded(IMInterstitial arg0) {

                if (interstitial.getState() == IMInterstitial.State.READY) {
                    Log.i("Inside Interstitial Ready state", "Ready");
                    interstitial.loadInterstitial();
                    interstitial.show();
                }

            }

            @Override
            public void onInterstitialInteraction(IMInterstitial interstitial,
                    Map<String, String> params) {
                Log.i("onInterstitialInteraction", "inside");
            }

            @Override
            public void onInterstitialFailed(IMInterstitial arg0,
                    IMErrorCode arg1) {
                Log.i("onInterstialFailed", "Failed " + arg1);
            }
        });

解决方案

I work for InMobi.

You should call

interstitial.loadInterstitial() in onInterstitialFailed instead of onInterstitialLoaded() of the call back.

Let me know if this works. Also, can you give me your property ID please?

这篇关于间质的InMobi广告没有得到Android的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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