Integra Mintegral con la mediazione

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

支持的集成和广告格式

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

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

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

2 出价和广告瀑布流 原生广告格式的集成正处于公开测试阶段。

要求

  • 最新版 Google 移动广告 SDK
  • Flutter 3.7.0 或更高版本
  • 在 Android 上部署 <ph type="x-smartling-placeholder">
      </ph>
    • Android API 级别 21 或更高级别
  • 在 iOS 上部署 <ph type="x-smartling-placeholder">
      </ph>
    • iOS 部署目标为 12.0 或更高版本
  • 配置了以下项的有效 Flutter 项目: 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

Configurare le impostazioni di mediazione per l'unità pubblicitaria

Android

Per le istruzioni, consulta il passaggio 2 della guida per Android.

iOS

Per le istruzioni, consulta il passaggio 2 nella guida per iOS.

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

Segui i passaggi descritti in Impostazioni GDPR e Impostazioni relative alle normative statali degli Stati Uniti per aggiungere Mintegral all'elenco di partner pubblicitari per le normative GDPR e statali degli Stati Uniti nell' AdMob UI.

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

通过 pub.dev 进行集成

将以下依赖项与最新版本的 Mintegral 软件包的 pubspec.yaml 文件:

dependencies:
  gma_mediation_mintegral: ^1.0.0

手动集成

下载针对以下指标的最新版 Google 移动广告中介插件: Mintegral、 将下载的文件解压缩,然后添加提取的插件文件夹 (及其内容)添加到您的 Flutter 项目中。然后,在 pubspec.yaml 文件,通过添加以下依赖项:

dependencies:
  gma_mediation_mintegral:
    path: path/to/local/package

第 4 步:添加所需的代码

Android

Mintegral 集成不需要其他代码。

iOS

SKAdNetwork 集成

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

第 5 步:测试实现效果

Attiva annunci di prova

Assicurati di registrare il dispositivo di test per AdMob

Per ottenere annunci di test Mintegral per banner, interstitial, annunci con premio e formati di annunci nativi, Mintegral consiglia di utilizzare le chiavi app, gli ID app, gli ID posizionamento e gli ID unità pubblicitaria forniti nella Pagina dell'ID test Mintegral.

Verifica annunci di prova

Per verificare di ricevere annunci di prova daMintegral, attiva il test di una singola origine annuncio nello strumento di controllo degli annunci utilizzando le Mintegral (Bidding) and Mintegral (Waterfall) origini annuncio.

错误代码

如果适配器未能接收来自 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 Flutter 中介适配器更新日志

1.0.0

  • 初始版本。
  • 已验证与 Mintegral Android 适配器版本 16.7.21.0 的兼容性。
  • 已验证与 Mintegral iOS 适配器版本 7.6.3.0 的兼容性。
  • 使用 Google 移动广告 Flutter 插件 5.1.0 版进行构建和测试。