【问题标题】:Does Inmobi works with Admob MediationInmobi 是否与 Admob 中介一起使用
【发布时间】:2013-12-02 20:05:12
【问题描述】:

我在 logcat 中得到以下信息,这可能是未加载 Inmobi 广告的原因

    VFY: replacing opcode 0x22 at 0x0010
VFY: dead code 0x000d-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Context;)V
VFY: dead code 0x0012-002c in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Context;)V
Could not find method com.google.android.gms.location.ActivityRecognitionResult.hasResult, referenced from method com.inmobi.commons.internal.ActivityRecognitionManager.a
VFY: unable to resolve static method 7313: Lcom/google/android/gms/location/ActivityRecognitionResult;.hasResult (Landroid/content/Intent;)Z
VFY: replacing opcode 0x71 at 0x0000
VFY: dead code 0x0003-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Intent;)V
Could not find class 'com.google.android.gms.location.DetectedActivity', referenced from method com.inmobi.commons.internal.ActivityRecognitionManager.getDetectedActivity
VFY: unable to resolve check-cast 1125 (Lcom/google/android/gms/location/DetectedActivity;) in Lcom/inmobi/commons/internal/ActivityRecognitionManager;
VFY: replacing opcode 0x1f at 0x0009
VFY: dead code 0x000b-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.getDetectedActivity ()I
2): clipservice: android.sec.clipboard.ClipboardExManager@4062a668
Could not find method android.os.Vibrator.hasVibrator, referenced from method com.inmobi.re.controller.JSUtilityController.c
VFY: unable to resolve virtual method 908: Landroid/os/Vibrator;.hasVibrator ()Z
VFY: replacing opcode 0x6e at 0x01fc
Could not find method com.inmobi.re.container.IMWebView.isHardwareAccelerated, referenced from method com.inmobi.re.controller.JSUtilityController.c
VFY: unable to resolve virtual method 9322: Lcom/inmobi/re/container/IMWebView;.isHardwareAccelerated ()Z
VFY: replacing opcode 0x6e at 0x0217
VFY: dead code 0x01ff-0201 in Lcom/inmobi/re/controller/JSUtilityController;.c (Ljava/lang/String;)Z
VFY: dead code 0x021a-0228 in Lcom/inmobi/re/controller/JSUtilityController;.c (Ljava/lang/String;)Z
VFY: dead code 0x0234-0235 in Lcom/inmobi/re/controller/JSUtilityController;.c (Ljava/lang/String;)Z
  1. 我在 admob 中介展示位置中有“admob”、“inmobi”、“Mmedia”广告网络
  2. 我的应用程序尚未上线,我正在测试各种广告网络(使用 admob 中介)
  3. 我禁用了除“inmobi”之外的所有中介广告网络。它没有显示添加,我可以上面提到的 logcat 日志

我是如何集成的????

  1. 我在各个广告网络网站上创建了登录ID并注册了应用程序并获得了APP ID
  2. 在中介的相应广告网络中使用了该 APP ID
  3. 我的应用程序主要活动正在使用中介 ID
  4. 如果我只选择“admob”并禁用其他人,admob 可以工作并显示广告,但 Inmobi 没有广告

我在代码中修改了什么??

  1. 在 libs 文件夹中添加了 2 个 jar 文件(inmobi 适配器和 inmobi sdk)
  2. 在 Menifest 文件中添加以下内容

    android:name="com.inmobi.commons.analytics.androidsdk.IMAdTrackerReceiver" 安卓:启用=“真” android:exported="true">

【问题讨论】:

  • 您是否使用了正确版本的适配器和 SDK?此外,android manifest 也需要 IMBrowserActivity 定义。请再次查看集成..

标签: admob integration inmobi


【解决方案1】:

尝试以下步骤:

  1. 从http://www.inmobi.com/support/integration/23817448/22051163/android-sdk-integration-guide/下载最新的inmobi sdk

    1. 为 admob 中介下载最新的 inmobi 适配器

    2. 将这些 jars 添加到 libs 文件夹并按照您之前提到的 admob 集成步骤进行操作。

    3. 在您的应用清单中添加以下内容:

.

<activity android:name="com.inmobi.androidsdk.IMBrowserActivity"
android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize"
android:hardwareAccelerated="true" />
 <receiver
    android:name="com.inmobi.commons.analytics.androidsdk.IMAdTrackerReceiver"
    android:enabled="true"
    android:exported="true" >
    <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
    </intent-filter>
 </receiver>
  1. 在 admob 网站上进行必要的配置以启用 inmobi 广告

如果您仍然遇到问题,请检查您的 inmobi 应用程序/属性 ID 是否处于活动状态。如果您的 appid 未激活,您仍然可以通过以下链接测试您的集成 test inmobi integration

【讨论】:

    【解决方案2】:

    感谢 Gurnetkaur, 我发现了问题。

    所有配置文件中的一切都是正确的。 问题出在 APP ID 上。因为我没有在市场上发布 APP 并且它没有任何有效的 URL。 Inmobi 不会向正​​在开发的应用发送广告。必须有有效的市场 URL。

    有两种解决方案可以在这种情况下测试广告。 1. 使用 Inmobi 添加测试设备 2. 从 inmobi 获取测试应用 ID(我从他们那里得到了一个)

    感谢您的回答

    【讨论】:

    • 我也在尝试相同的方法,在 InMobi 的应用程序中,我可以看到以下消息“请注意,对于没有注册 URL 的应用程序,将仅在所有设备上提供测试广告。”所以我认为现在开发应用程序也应该可以工作
    猜你喜欢
    • 1970-01-01
    • 2020-02-14
    • 2011-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多