Mintegral

This Guideline will instruct you step-by-step on how to set Mintegral live as an ad network on the AdTiming Mediation platform.

Before You Start

Make sure you have correctly integrated AdTiming's Rewarded Video, Interstitial Ads into your application.

Important! The ADAPTERS for ad networks are modularized, which means that you need to download Not Only the SDK of mediation networks  you choose to work with But Also the adapters for those ad networks. Be sure to follow this Guide to mediation Mintegral's Ads.

Step 1. Create an Mintegral Account

  1. Create an account with Mintegral. You can do so here.
  2. Once your account has been verified, you can login at their partner login here.

Step 2. Create an Application in Mintegral

Already set up your application(s) at Mintegral? Skip to here.

1. Login

  • When you log in for the first time, select APP Setting

mintegral_android_1.png

2. Add Your App

  • Upon clicking + Add APP, a setup module will appear, you can enter details here:

mintegral_android_2.png

  • Note: You will need a unique Mintegral application per platform (iOS + Android) just like you do with your ironSource account.
  • After you defined the settings, you will be asked to check the ad types you DO NOTwish to be delivered to your application.

mintegral_android_3.png

3. Add Ad Units

  • After you defined the Applications settings, select the relevant Apps through dashboard and click Add AD Unit:

mintegral_android_4.png

  • If interested in serving Mintegral Interstitial Ads on the AdTiming platform, select Interstitial Video and select Next:

mintegral_android_5.png

  • For Rewarded Video, please follow the same steps, only select Rewarded Video in the previous step.

Step 3. Configure Mintegral’s Parameters into AdTiming Account

1. Once you have both of these parameters, log in to your AdTiming account and go to Placement ->Edit your placement  

2. Click on Instances-> Add Instance. Select Mintegral from the list of Available Ad Networks, click 'New Account'

___48.jpg

3. Complete the following parameters below,and click 'Save'. 

___49.jpg

 

Step 4. Add the Mintegral SDK&Adapter to Your Build

Android

1. Add the Mintegral SDK

  • Add to your application-level build.gradle file. Click here for more information.
depedencies {
    implementation 'com.mintegral.msdk:videojs:10.2.41'
implementation 'com.mintegral.msdk:mtgjscommon:10.2.41'
implementation 'com.mintegral.msdk:playercommon:10.2.41'
implementation 'com.mintegral.msdk:reward:10.2.41'
implementation 'com.mintegral.msdk:videocommon:10.2.41'
implementation 'com.mintegral.msdk:common:10.2.41'
implementation 'com.mintegral.msdk:interstitialvideo:10.2.41'
}

2. Add the Mintegral Adapter

     AdTiming supports both Gradle dependencies and Manual download mechanisms.

       Gradle dependencies

  • Add the following in your project-level build.gradle file.
 ...
allprojects {
repositories {
...
jcenter()
maven {
url "https://dl.adtiming.com/android-sdk"
}
}
}
  • Add the following in your application-level build.gradle file.
 implementation 'com.adtiming.adapters:mintegral:3.0.1@aar'

       Manual download

  • Download the Mintegral Adapter from here.
  • Add the Mintegral Adapter to Your Project
    Move the MintegralAdapter-x.x.x.aar to the libs folder in your Android Project.
  • Make sure you add the following to your Gradle build file under the dependencies section:
implementation (name:'MintegralAdapter-x.x.x', ext:'aar')

3. Update AndroidManifest.xml

<!-- Required for China-Mainland Traffic app -->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
<application>
<!-- Apps that do not release on the google play required, on the contrary, can be ignore -->
<receiver android:name="com.mintegral.msdk.click.AppReceiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<!-- Apps that do not release on the google play required, on the contrary, can be ignore-->
<service android:name="com.mintegral.msdk.shell.MTGService" >
<intent-filter>
<action android:name="com.mintegral.msdk.download.action" />
</intent-filter>
</service>
</application>

4. For Proguard Users Only

If you are using ProGuard with the Mintegral adapter, you must add the following code to your ProGuard configuration (Android Studio: proguard-rules.pro or Eclipse: proguard-project.txt):

-keepattributes Signature 
-keepattributes *Annotation*
-keep class com.mintegral.** {*; }
-keep interface com.mintegral.** {*; }
-keep class android.support.v4.** { *; }
-dontwarn com.mintegral.**
-keep class **.R$* { public static final int mintegral*; }
-keep class com.alphab.** {*; }
-keep interface com.alphab.** {*; }

 

Done!
You are now all set to deliver Mintegral Network Ads through the AdTiming Mediation platform!

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.