【问题标题】:InMobi interstitial ads are not getting displayed androidInMobi 插页式广告未显示 android
【发布时间】:2014-09-26 06:46:35
【问题描述】:

我尝试按照here. 中提到的说明将 InMobi 插页式广告集成到我的 Android 应用程序中

以下是我在我的活动类中合并的用于显示插页式广告的代码。

我没有遇到任何异常,但每次运行代码时,都会调用回调方法 onInterstitialFailed 并显示消息“广告请求成功,但未找到广告”。

期待回复/解决方案

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);
            }
        });

【问题讨论】:

    标签: android ads interstitial inmobi


    【解决方案1】:

    我为 InMobi 工作。

    你应该打电话

    interstitial.loadInterstitial() 在 onInterstitialFailed 代替 onInterstitialLoaded() 的回调。

    让我知道这是否有效。 另外,请给我您的房产证吗?

    【讨论】:

    • 我尝试了上述建议,即在 onInterstialFailed 中调用 interstitial.loadInterstial() 而不是 onInterstitialLoaded()。但它遇到了一个无限循环,显示消息“正在下载广告。目前无法处理您的请求。请稍后再试。”后来应用程序因给出致命异常而崩溃:堆栈溢出错误。属性 ID 为“f068f49b6490464ba27703bd3e83bd44”。
    • 嗯。是的,我的错。在这种情况下,这将变成一个无限循环。您使用的是哪个版本的 SDK?
    • 检查了您的住宿 ID,但它未激活。你在测试模式下尝试吗?广告是从我们端开始投放的。也有一些服务器(在我们这边)出现故障的可能性很小。你能在一天的时间里试试看是否有效吗?
    • 是的,我在测试模式下尝试。如何激活属性 ID?我上周整合了它,但很多天都看不到广告。 inMobi 服务器宕机多日了吗?
    • 看起来我们确实存在一个关于以诊断模式发送的插页式广告的错误。给我们几天的时间,我们会修复它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多