将 Mintegral 与中介集成

本指南将向您介绍如何使用 Google 移动广告 SDK 加载和展示 来自 Mintegral 的广告使用中介功能; 包括广告瀑布流和出价集成其中介绍了如何 Mintegral 添加到广告单元的中介配置,以及如何集成 Mintegral SDK 和适配器 Unity 集成到应用中。

支持的集成和广告格式

Mintegral 的 AdMob 中介适配器 以下功能:

集成
出价
瀑布
表现形式
打开应用  1
横幅
插页式广告
激励广告
插页式激励广告

1 出价和广告瀑布流 开屏广告格式的集成目前处于封闭式 Beta 版测试阶段。

要求

  • 最新版 Google 移动广告 SDK <ph type="x-smartling-placeholder">
      </ph>
    • Unity 5.6 或更高版本
    • 在 Android 上部署 <ph type="x-smartling-placeholder">
        </ph>
      • Android API 级别 21 或更高级别
    • 在 iOS 上部署 <ph type="x-smartling-placeholder">
        </ph>
      • iOS 部署目标为 12.0 或更高版本
    • 配置了以下项的有效 Unity 项目: Google 移动广告 SDK。请参阅 如需了解详情,请开始使用
    • 完成中介流程 入门指南

第 1 步:在 Mintegral 界面中设置配置

Sign up or Log in to your Mintegral account.

Locate the App Key

Navigate to the APP Setting tab and take note of the APP Key.

Add a new application

From the APP Setting tab, click the Add APP button.

Select the Platform and fill out the rest of the form. Then, click Save.

Android

iOS

Take note of your application's APP ID.

Android

iOS

Create an ad placement

Once your application has been created, navigate to the Placements & Units tab and click on the Add Placement button as shown below to create your ad placement.

Android

iOS

Enter a Placement Name and AD Format.

Bidding

Select Header Bidding as the Bidding Type. Fill out the rest of the form and click Save.

Waterfall

Select Traditional as the Bidding Type. Fill out the rest of the form and click Save.

Once your ad placement is created, take note of the Placement ID.

Android

iOS

Click the 1 AD Units drop down and take note of the AD Unit ID.

Android

iOS

Locate your Mintegral Reporting API Key

Bidding

This step isn't required for bidding integrations.

Waterfall

You will need your Mintegral Reporting API Key for setting up your AdMob ad unit ID. Navigate to Account > API Tools. Take note of your Skey and Secret.

第 2 步:在界面中设置 Mintegral 需求 AdMob

为广告单元配置中介设置

Android

如需了解相关说明,请参阅 Android 指南中的第 2 步。

iOS

如需了解相关说明,请参阅 iOS 指南中的第 2 步。

将 Mintegral 添加到 GDPR 和美国州级法规广告合作伙伴列表

按照 GDPR 设置美国州级法规设置 中的步骤,将 Mintegral 添加到 AdMob 界面中的 GDPR 和美国州级法规广告合作伙伴列表中。

第 3 步:导入 Mintegral SDK 和适配器

下载适用于 Mintegral 的最新版 Google 移动广告中介插件 下载链接 更新日志,并从 zip 文件中的 GoogleMobileAdsMintegralMediation.unitypackage

在 Unity 项目编辑器中,选择 Assets >导入软件包 > 自定义 Package 并找到 GoogleMobileAdsMintegralMediation.unitypackage 文件。确保已选择所有文件,然后点击 导入

然后,选择素材资源 >Play 服务解析器 >Android 解析器 >强制 解决。Unity Play Services Resolver 库将执行依赖项处理, 并将声明的依赖项复制到 Assets/Plugins/Android 目录中。

第 4 步:添加所需的代码

Android

Mintegral 集成不需要其他代码。

iOS

SKAdNetwork 集成

按照 Mintegral 文档操作 将 SKAdNetwork 标识符添加到项目的 Info.plist 文件中。

第 5 步:测试实现效果

启用测试广告

请务必为 AdMob。

要获取适用于横幅广告、插页式广告、激励广告和原生广告格式的 Mintegral 测试广告,Mintegral 建议您使用 “Mintegral Test ID”页面

验证测试广告

如需验证您收到的是来自Mintegral的测试广告,请使用相应广告来源在广告检查器中启用单一广告来源测试Mintegral (Bidding) and Mintegral (Waterfall)

错误代码

如果适配器未能接收来自 Mintegral 的广告,发布商可以检查 使用 ResponseInfo,位于以下类下:

Android

com.mbridge.msdk
com.google.ads.mediation.mintegral.MintegralMediationAdapter

iOS

GADMediationAdapterMintegral

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

Android

错误代码 网域 原因
101 com.google.ads.mediation.mintegral 服务器参数无效(例如,缺少应用 ID 或展示位置 ID)。
102 com.google.ads.mediation.mintegral 请求的广告尺寸与 Mintegral 支持的横幅广告尺寸不匹配。
103 com.google.ads.mediation.mintegral 出价响应缺失或无效。
104 com.google.ads.mediation.mintegral Mintegral SDK 返回了未填充错误。

iOS

错误代码 网域 原因
101 com.google.mediation.mintegral 服务器参数无效(例如,缺少应用 ID 或展示位置 ID)。
102 com.google.mediation.mintegral Mintegral SDK 返回了未填充错误。
103 com.google.mediation.mintegral Mintegral SDK 未能展示广告。
104 com.google.mediation.mintegral 请求的广告尺寸与 Mintegral 支持的横幅广告尺寸不匹配。

Mintegral Unity 中介插件更新日志

版本 1.7.0

版本 1.6.5

版本 1.6.4

版本 1.6.3

版本 1.6.2

版本 1.6.1

版本 1.6.0

版本 1.5.0

版本 1.4.0

版本 1.3.0

版本 1.2.1

版本 1.2.0

版本 1.1.0

版本 1.0.0