i-mobile in die Vermittlung einbinden

本指南将向您介绍如何使用 Google 移动广告 SDK 加载和展示 使用 中介、 包括广告瀑布流集成其中介绍了如何将 i-mobile 添加到广告单元的 中介配置,以及如何将 i-mobile SDK 和适配器集成到 一款 应用。

i-mobile 的信息中心界面使用日语文本作为标签, 按钮和说明本指南中的屏幕截图未经翻译。不过,在本指南的说明和说明中,标签和 相应按钮在翻译后会用英文括号括起来。

支持的集成和广告格式

i-mobile 的中介适配器具有以下功能:

集成
出价
瀑布
表现形式
横幅
插页式广告
激励广告
原生

要求

  • iOS 部署目标为 12.0 或更高版本
  • 最新版 Google 移动广告 SDK

  • 完成中介流程 入门指南

第 1 步:在 i-mobile 界面中设置配置

第 2 步:在界面中设置 i-mobile 需求 Ad Manager

Vermittlungseinstellungen für Anzeigenblöcke konfigurieren

Android

Eine Anleitung finden Sie in Schritt 2 der Anleitung für Android.

iOS

Eine Anleitung dazu finden Sie in Schritt 2 der Anleitung für iOS.

第 3 步:导入 i-mobile SDK 和适配器

将以下代码行添加到项目的 Podfile 中:

pod 'GoogleMobileAdsMediationIMobile'

在命令行中运行以下命令:

pod install --repo-update

手动集成

  • 下载最新版 i-mobile SDK 和关联 ImobileSdkAds.framework
  • 从以下位置的下载链接下载最新版本的 i-mobile 适配器 更新日志和 关联项目中的 IMobileAdapter.framework

第 4 步:添加所需的代码

SKAdNetwork 集成

按照 i-mobile 文档中的说明操作 将 SKAdNetwork 标识符添加到项目的 Info.plist 文件中。

第 5 步:测试实现效果

Testanzeigen aktivieren

Registrieren Sie Ihr Testgerät für Ad Manager. i-mobile bietet zu Testzwecken die Spot-ID, die Media-ID und die Publisher-ID. Diese findest du hier.

Testanzeigen überprüfen

Wenn Sie prüfen möchten, ob Sie Testanzeigen voni-mobileerhalten, aktivieren Sie im Anzeigenprüftool mithilfe der i-mobile (Waterfall) Anzeigenquellen den Test für eine einzelne Anzeigenquelle.

可选步骤

使用原生广告

广告呈现

i-mobile 适配器会填充以下内容 字段 针对 GADNativeAd

字段 i-mobile 适配器始终包含素材资源
标题
映像
正文
应用图标 1
号召性用语
星级
商店
价格

1 对于原生广告,i-mobile SDK 不提供应用图标素材资源。相反, i-mobile 适配器会使用透明图片填充应用图标。

错误代码

如果适配器无法接收来自 i-mobile 的广告, 发布商可以使用 GADResponseInfo.adNetworkInfoArray

格式 类名称
横幅 IMobileAdapter
插页式广告 IMobileAdapter
原生 GADMediationAdapterIMobile

以下是 i-mobile 适配器抛出的代码和附带消息 当广告加载失败时:

错误代码 原因
0-10 i-mobile SDK 返回了错误。请参阅代码 了解详情。
101 界面中配置的 i-mobile 服务器参数缺失/无效。 Ad Manager
102 请求的广告尺寸与 i-mobile 支持的横幅广告尺寸不符。
103 i-mobile 无法展示广告。
104 i-mobile 返回了一个空的原生广告数组。
105 i-mobile 未能下载原生广告素材资源。
106 i-mobile 不支持使用同一 Spot ID 请求多个插页式广告。

i-mobile iOS 中介适配器更新日志

版本 2.3.4.0

  • 已验证与 i-mobile SDK 2.3.4 的兼容性。
  • adSDKVersion 中添加了对返回 i-mobile SDK 版本的支持。

构建和测试所需版本:

  • Google 移动广告 SDK 11.2.0 版。
  • i-mobile SDK 2.3.4 版。

版本 2.3.3.0

  • 已验证与 i-mobile SDK 2.3.3 的兼容性。

构建和测试所需版本:

  • Google 移动广告 SDK 11.1.0 版。
  • i-mobile SDK 版本 2.3.3。

版本 2.3.2.1

  • 从横幅广告、插页式广告和原生广告的植入方式中移除了已废弃的 willBackgroundApplication 委托方法。
  • 现在要求最低 iOS 版本为 12.0。
  • 现在需要 Google 移动广告 SDK 11.0 或更高版本。
  • IMobileAdapter.xcframework 的框架中添加了 Info.plist

构建和测试时所用平台:

  • Google 移动广告 SDK 11.0.1 版。
  • i-mobile SDK 2.3.2 版。

版本 2.3.2.0

  • 已验证与 i-mobile SDK 2.3.2 的兼容性。
  • 移除了对 armv7 架构的支持。
  • 现在要求最低 iOS 版本为 11.0。
  • 现在需要 Google 移动广告 SDK 10.4.0 或更高版本。

构建和测试所需版本:

  • Google 移动广告 SDK 10.4.0 版。
  • i-mobile SDK 2.3.2 版。

版本 2.3.1.0

  • 已验证与 i-mobile SDK 2.3.1 的兼容性。

构建和测试时所用平台:

  • Google 移动广告 SDK 10.3.0 版。
  • i-mobile SDK 2.3.1 版。

版本 2.3.0.1

  • 现在需要 Google 移动广告 SDK 10.0.0 或更高版本。

构建和测试所需版本:

  • Google 移动广告 SDK 10.0.0 版。
  • i-mobile SDK 2.3.0 版。

版本 2.3.0.0

  • 已验证与 i-mobile SDK 2.3.0 的兼容性。
  • 现在需要 Google 移动广告 SDK 9.8.0 或更高版本。

构建和测试时所用平台:

  • Google 移动广告 SDK 9.13.0 版。
  • i-mobile SDK 2.3.0 版。

版本 2.2.0.1

  • 现在需要 Google 移动广告 SDK 9.0.0 或更高版本。

构建和测试时所用平台:

  • Google 移动广告 SDK 9.0.0 版。
  • i-mobile SDK 2.2.0 版。

版本 2.2.0.0

  • 已验证与 i-mobile SDK 2.2.0 版的兼容性。

构建和测试所用的

  • Google 移动广告 SDK 8.13.0 版。
  • i-mobile SDK 版本 2.2.0。

版本 2.1.0.1

  • 放宽了对 Google 移动广告 SDK 8.0.0 或更高版本的依赖。

构建和测试所用的

  • Google 移动广告 SDK 8.4.0 版。
  • i-mobile SDK 2.1.0 版。

版本 2.1.0.0

  • 已验证与 i-mobile SDK 2.1.0 版的兼容性。
  • 现在需要 Google 移动广告 SDK 8.1.0 或更高版本。
  • 将适配器更新为使用 .xcframework 格式。

构建和测试所用的

  • Google 移动广告 SDK 8.1.0 版。
  • i-mobile SDK 版本 2.1.0。

版本 2.0.33.1

  • 添加了标准化的适配器错误代码和消息。
  • 适配器现在限制使用相同的 i-mobile 广告展示位置 ID 请求多个插页式广告。
  • 现在,适配器会在点按原生广告时转发 -nativeAdWillLeaveApplication: 回调。
  • 现在需要 Google 移动广告 SDK 7.68.0 或更高版本。

构建和测试所用的

  • Google 移动广告 SDK 7.68.0 版。
  • i-mobile SDK 版本 2.0.33。

版本 2.0.33.0

  • 已验证与 i-mobile SDK 2.0.33 版的兼容性。
  • 现在需要 Google 移动广告 SDK 7.65.0 或更高版本。
  • 现在要求 iOS 最低版本为 9.0。

构建和测试所需版本

  • Google 移动广告 SDK 7.65.0 版。
  • i-mobile SDK 2.0.33 版。

版本 2.0.32.0

  • 已验证与 i-mobile SDK 2.0.32 版兼容。
  • 现在需要 Google 移动广告 SDK 7.60.0 或更高版本。
  • 添加了对缩放 320x50 和 320x100 广告的支持,以更好地适应自适应横幅广告请求尺寸。
  • 取消了对 i386 架构的支持。

构建和测试所需版本

  • Google 移动广告 SDK 7.60.0 版。
  • i-mobile SDK 2.0.32 版。

版本 2.0.31.0

  • 已验证与 i-mobile SDK 2.0.31 版兼容。

构建和测试所用的

  • Google 移动广告 SDK 7.53.1 版。
  • i-mobile SDK 2.0.31 版。

版本 2.0.29.0

  • 初始版本!
  • 新增了对横幅广告、插页式广告和原生广告的支持。

构建和测试所用的

  • Google 移动广告 SDK 7.52.0 版。
  • i-mobile SDK 2.0.29 版。