Integrate Mintegral with mediation (Beta)

This guide shows you how to use the Google Mobile Ads SDK to load and display ads from Mintegral using mediation, covering both waterfall and bidding integrations. It covers how to add Mintegral to an ad unit's mediation configuration, and how to integrate the Mintegral SDK and adapter into a Unity app.

Supported integrations and ad formats

The AdMob mediation adapter for Mintegral has the following capabilities:

Integration
Bidding  1
Waterfall
Formats
Banner
Interstitial
Rewarded
Rewarded Interstitial

1 Bidding integration is in beta.

Requirements

  • Unity 5.6 or higher
  • Latest Google Mobile Ads SDK
  • To deploy on Android
    • Android API level 19 or higher
  • To deploy on iOS
    • iOS deployment target of 11.0 or higher
  • A working Unity project configured with the Google Mobile Ads SDK. See Get Started for details.
  • Complete the mediation Get started guide

Step 1: Set up 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 on the Add APP button.

Android

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

Take note of your application's APP ID.

iOS

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

Take note of your application's APP ID.

Create an ad placement

Android

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.

Enter your desired 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.

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

iOS

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.

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.

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

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 ad unit ID. Navigate to Account > API Tools. Take note of your Skey and Secret.

Step 2: Configure mediation settings for your AdMob ad unit

You need to add Mintegral to the mediation configuration for your ad unit. First sign in to your AdMob account.

Android

Navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add Mintegral as an ad source.

To create a new mediation group, select Create Mediation Group.

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units, which will open up the ad unit selection overlay.

Associate this mediation group with your existing AdMob ad unit. Then click Done. You should now see the ad units card populated with the ad units you selected.

Add Mintegral as an ad source

Bidding

Under the Bidding card in the Ad Sources section, select Add Ad Source. Then select Mintegral.

Click How to sign a partnership agreement and set up a bidding partnership with Mintegral.

Click Acknowledge & agree, then click Continue.

If you already have a mapping for Mintegral, you can simply select it. Otherwise, click Add mapping.

Next, enter a Mapping name and the Placement ID, App Key, App ID, Placement ID and Ad Unit ID obtained in the previous section. Then click Done.

Waterfall

Under the Waterfall card in the Ad Sources section, select Add Ad Source. Then select Mintegral.

Enter the Skey and Secret. The enter an eCPM value for Mintegral and click Continue.

If you already have a mapping for Mintegral, you can simply select it. Otherwise, click Add mapping.

Next, enter a Mapping name, the App Key, App ID, Placement ID, and the Ad Unit ID obtained in the previous section. Then click Done.

iOS

Navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add Mintegral as an ad source.

To create a new mediation group, select Create Mediation Group.

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units, which will open up the ad unit selection overlay.

Associate this mediation group with your existing AdMob ad unit. Then click Done.

You should now see the ad units card populated with the ad units you selected.

Add Mintegral as an ad source

Bidding

Under the Bidding card in the Ad Sources section, select Add Ad Source. Then select Mintegral.

Click How to sign a partnership agreement and set up a bidding partnership with Mintegral.

Click Acknowledge & agree, then click Continue.

If you already have a mapping for Mintegral, you can simply select it. Otherwise, click Add mapping.

Next, enter a Mapping name and the Placement ID, App Key, App ID, Placement ID and Ad Unit ID obtained in the previous section. Then click Done.

Waterfall

Under the Waterfall card in the Ad Sources section, select Add Ad Source. Then select Mintegral.

Enter the Reporting API account id and Secret Key. The enter an eCPM value for Mintegral and click Continue.

If you already have a mapping for Mintegral, you can simply select it. Otherwise, click Add mapping.

Next, enter a Mapping name, the App Key, App ID, Placement ID, and the Ad Unit ID obtained in the previous section. Then click Done.

Step 3: Import the Mintegral SDK and adapter

Download the latest version of Google Mobile Ads mediation plugin for Mintegral from the download link in the Changelog and extract the GoogleMobileAdsMintegralMediation.unitypackage from the zip file.

In your Unity project editor, select Assets > Import Package >Custom Package and find the GoogleMobileAdsMintegralMediation.unitypackage file you downloaded. Make sure that all the files are selected and click Import.

Then, select Assets > Play Services Resolver > Android Resolver > Force Resolve. The Unity Play Services Resolver library will perform dependency resolution from scratch and copy the declared dependencies into the Assets/Plugins/Android directory of your Unity app.

Step 4: Additional code required

Android

No additional code is required for Mintegral integration.

iOS

SKAdNetwork integration

Follow Mintegral's documentation to add the SKAdNetwork identifiers to your project's Info.plist file.

Step 5: Test your implementation

To get Mintegral test ads for banners, interstitials, rewarded and native ad formats, Mintegral recommends using the App Keys, App IDs, Placement IDs and Ad Unit IDs provided in the Mintegral Test ID page for Android and iOS.

That's it! You now have a working mediation integration with Mintegral.

Error codes

If the adapter fails to receive an ad from Mintegral, publishers can check the underlying error from the ad response using ResponseInfo under the following classes:

Android

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

iOS

GADMediationAdapterMintegral

Here are the codes and accompanying messages thrown by the Mintegral adapter when an ad fails to load:

Android

Error code Domain Reason
101 com.google.ads.mediation.mintegral Invalid server parameters (e.g. Missing app ID or placement ID).
102 com.google.ads.mediation.mintegral The requested ad size does not match a Mintegral supported banner size.
103 com.google.ads.mediation.mintegral Missing or invalid bid response.
104 com.google.ads.mediation.mintegral Mintegral SDK returned a no fill error.

iOS

Error code Domain Reason
101 com.google.mediation.mintegral Invalid server parameters (e.g. Missing app ID or placement ID).
102 com.google.mediation.mintegral Mintegral SDK returned a no fill error.
103 com.google.mediation.mintegral Mintegral SDK failed to show an ad.
104 com.google.mediation.mintegral The requested ad size does not match a Mintegral supported banner size.

Mintegral Unity Mediation Plugin Changelog

Version 1.2.1

Version 1.2.0

Version 1.1.0

Version 1.0.0