বিডিংয়ের সাথে মিন্টেগ্রাল একীভূত করুন (বিটা)

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 an Android app.

Supported integrations and ad formats

The mediation adapter for Mintegral has the following capabilities:

Integration
Bidding  1
Waterfall  2
Formats
App Open
Banner
Interstitial
Rewarded
Rewarded Interstitial
Native
1 Bidding integration is in closed beta.

2 Waterfall integration is in closed beta.

Requirements

  • Android API level 21 or higher

Step 1: Set up configurations in Mintegral UI

注册登录您的 Mintegral 帐号。

查找应用密钥

前往应用设置标签页,然后记下应用密钥

添加新应用

应用设置标签页中,点击添加应用按钮。

选择平台,然后填写表单的其余部分。然后,点击保存

记下您应用的应用 ID

创建广告展示位置

创建应用后,转到展示位置和单元标签页,然后点击添加展示位置按钮(如下所示),即可创建广告展示位置。

输入展示位置名称广告格式

选择标头出价作为出价类型。填写表单的其余部分,然后点击保存

创建广告展示位置后,请记下展示位置 ID

点击 1 个广告单元下拉菜单,并记下 AD Unit ID(广告单元 ID)。

找到您的 Mintegral Reporting API 密钥

出价

出价集成不需要执行此步骤。

瀑布

您需要使用 Mintegral Reporting API 密钥来设置Ad Manager 广告单元 ID。前往帐号 > API 工具。记下您的 SkeySecret

Step 2: Set up Mintegral demand in Ad Manager UI

আপনার অ্যাড ম্যানেজার অ্যাকাউন্টে সাইন ইন করুন।

কোম্পানিতে Mintegral যোগ করুন

বিডিং

বিডিং ইন্টিগ্রেশনের জন্য এই ধাপের প্রয়োজন নেই।

জলপ্রপাত

অ্যাডমিন > কোম্পানিতে নেভিগেট করুন, তারপর সমস্ত কোম্পানি ট্যাবে নতুন কোম্পানি বোতামে ক্লিক করুন। বিজ্ঞাপন নেটওয়ার্ক নির্বাচন করুন।

বিজ্ঞাপন নেটওয়ার্ক হিসাবে Mintegral নির্বাচন করুন, একটি অনন্য নাম লিখুন এবং মধ্যস্থতা সক্ষম করুন৷

আপনাকে ব্যবহারকারীর নাম বা পাসওয়ার্ড লিখতে হবে না। হয়ে গেলে Save এ ক্লিক করুন।

নিরাপদ সংকেত শেয়ারিং সক্ষম করুন

বিডিং

অ্যাডমিন > গ্লোবাল সেটিংসে নেভিগেট করুন। অ্যাড এক্সচেঞ্জ অ্যাকাউন্ট সেটিংস ট্যাবে যান এবং সুরক্ষিত সংকেত ভাগ করে নেওয়ার উপর পর্যালোচনা করুন এবং টগল করুন৷ Save এ ক্লিক করুন।

জলপ্রপাত

জলপ্রপাত একীকরণের জন্য এই পদক্ষেপের প্রয়োজন নেই।

Mintegral বিডিং কনফিগার করুন

বিডিং

ডেলিভারি > বিডার- এ নেভিগেট করুন এবং SDK বিডিং ট্যাবের অধীনে নতুন বিডার- এ ক্লিক করুন।

দরদাতা হিসেবে Mintegral নির্বাচন করুন।

অনুমোদিত সংকেতগুলির তালিকায় এই বিডারের সিগন্যাল লাইব্রেরি যোগ করুন এবং এই দরদাতার সাথে সিগন্যাল শেয়ার করার অনুমতি দিন । তারপর, Continue এ ক্লিক করুন।

অবিরত ক্লিক করুন.

সম্পন্ন ক্লিক করুন.

জলপ্রপাত

জলপ্রপাত একীকরণের জন্য এই পদক্ষেপের প্রয়োজন নেই।

বিজ্ঞাপন ইউনিট ম্যাপিং কনফিগার করুন

বিডিং

ডেলিভারি > বিডার- এ নেভিগেট করুন এবং SDK বিডিং ট্যাবের অধীনেMintegral এর জন্য কোম্পানি নির্বাচন করুন।

বিজ্ঞাপন ইউনিট ম্যাপিং ট্যাবে যান এবং নতুন বিজ্ঞাপন ইউনিট ম্যাপিং এ ক্লিক করুন।

নির্দিষ্ট বিজ্ঞাপন ইউনিট বেছে নিন। একটি বিজ্ঞাপন ইউনিট এবং বিন্যাস নির্বাচন করুন, ইনভেন্টরি প্রকার হিসাবে মোবাইল অ্যাপ এবং আপনার মোবাইল অ্যাপ্লিকেশন । তারপর, পূর্ববর্তী বিভাগে প্রাপ্তApp Key, App ID, Placement ID, and Ad Unit ID লিখুন। অবশেষে, Save এ ক্লিক করুন।

জলপ্রপাত

ডেলিভারি > ইল্ড গ্রুপে নেভিগেট করুন এবং নতুন ফলন গ্রুপ বোতামে ক্লিক করুন। আপনার মোবাইল অ্যাপ্লিকেশন নির্বাচন করুন.

নীচে স্ক্রোল করুন এবং ফলন অংশীদার যোগ করুন ক্লিক করুন।

পূর্ববর্তী বিভাগে Mintegralএর জন্য আপনি যে কোম্পানিটি তৈরি করেছেন তা নির্বাচন করুন। ইন্টিগ্রেশন টাইপ হিসাবে মোবাইল SDK মধ্যস্থতা বেছে নিন, প্ল্যাটফর্ম হিসাবে Android এবং স্থিতি হিসাবে সক্রিয়

পূর্ববর্তী বিভাগে প্রাপ্ত App Key, App ID, Placement ID, and Ad Unit IDএবং ডিফল্ট CPM মান লিখুন। Save এ ক্লিক করুন।

Add Mintegral to GDPR and US state regulations ad partners list

GDPR সেটিংসএবংইউএস স্টেট রেগুলেশন সেটিংস Mintegralএ ধাপগুলি অনুসরণ করুন Ad Manager UI এ।

Step 3: Import the Mintegral SDK and adapter

In your project-level settings.gradle.kts file, add the following repositories:

dependencyResolutionManagement {
  repositories {
    google()
    mavenCentral()
    maven {
      url = uri("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea")
    }
  }
}

Then, in your app-level build.gradle.kts file, add the following implementation dependencies and configurations. Use the latest versions of the Mintegral SDK and adapter:

dependencies {
    implementation("com.google.android.gms:play-services-ads:23.2.0")
    implementation("com.google.ads.mediation:mintegral:16.7.61.0")
}

Manual integration

  1. To include the Mintegral SDK, go to Mintegral SDK for Android.

  2. Navigate to the Mintegral adapter artifacts on Google's Maven Repository. Select the latest version, download the Mintegral adapter's .aar file, and add it to your project.

Step 4: Implement privacy settings on Mintegral SDK

Under the Google EU User Consent Policy, you must ensure that certain disclosures are given to, and consents obtained from, users in the European Economic Area (EEA) regarding the use of device identifiers and personal data. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR). When seeking consent, you must identify each ad network in your mediation chain that may collect, receive, or use personal data and provide information about each network's use. Google currently is unable to pass the user's consent choice to such networks automatically.

The Mintegral SDK includes the setConsentStatus method to pass consent information to the Mintegral SDK.

The following sample code shows how to pass consent information to the Mintegral SDK. These options must be set before you initialize the Google Mobile Ads SDK to ensure they get forwarded properly to the Mintegral SDK.

Java

import com.mbridge.msdk.out.MBridgeSDKFactory
// ...

MBridgeSDK sdk = MBridgeSDKFactory.getMBridgeSDK();
sdk.setConsentStatus(context, MBridgeConstans.IS_SWITCH_ON);

Kotlin

import com.mbridge.msdk.out.MBridgeSDKFactory
// ...

var sdk = MBridgeSDKFactory.getMBridgeSDK()
sdk.setConsentStatus(context, MBridgeConstans.IS_SWITCH_ON)

See Mintegral's privacy documentation for more information.

US states privacy laws

U.S. states privacy laws require giving users the right to opt out of the "sale" of their "personal information" (as the law defines those terms), with the opt-out offered via a prominent "Do Not Sell My Personal Information" link on the "selling" party's homepage. The U.S. states privacy laws compliance guide offers the ability to enable restricted data processing for Google ad serving, but Google is unable to apply this setting to each ad network in your mediation chain. Therefore, you must identify each ad network in your mediation chain that may participate in the sale of personal information and follow guidance from each of those networks to ensure compliance.

The Mintegral SDK includes setDoNotTrackStatus method to pass consent information to the Mintegral SDK.

The following sample code shows how to pass consent information to the Mintegral SDK. If you need to call this method, call it after initializing the Google Mobile Ads SDK but before requesting ads through the Google Mobile Ads SDK.

Java

import com.mbridge.msdk.out.MBridgeSDKFactory
// ...

MBridgeSDK mBridgeSDK = MBridgeSDKFactory.getMBridgeSDK();
mBridgeSDK.setDoNotTrackStatus(false);

Kotlin

import com.mbridge.msdk.out.MBridgeSDKFactory
// ...

var mBridgeSDK = MBridgeSDKFactory.getMBridgeSDK()
mBridgeSDK.setDoNotTrackStatus(false)

See Mintegral's privacy documentation for more information.

Step 5: Add required code

No additional code is required for Mintegral integration.

Step 6: Test your implementation

পরীক্ষা বিজ্ঞাপন সক্ষম করুন

নিশ্চিত করুন যে আপনিAd Manager।

ব্যানার, ইন্টারস্টিশিয়াল, পুরস্কৃত এবং নেটিভ বিজ্ঞাপন ফর্ম্যাটের জন্য Mintegral পরীক্ষার বিজ্ঞাপন পেতে, Mintegral Mintegral Test ID পৃষ্ঠায় দেওয়া অ্যাপ কী, অ্যাপ আইডি, প্লেসমেন্ট আইডি এবং বিজ্ঞাপন ইউনিট আইডি ব্যবহার করার পরামর্শ দেয়।

পরীক্ষা বিজ্ঞাপন যাচাই করুন

আপনিMintegralথেকে পরীক্ষামূলক বিজ্ঞাপনগুলি পাচ্ছেন তা যাচাই করতে, Mintegral (Bidding) and Mintegral (Waterfall) বিজ্ঞাপন উত্স(গুলি) ব্যবহার করে বিজ্ঞাপন পরিদর্শক-এ একক বিজ্ঞাপন উত্স পরীক্ষা সক্ষম করুন।

Optional steps

Add Mintegral to CCPA ad partners list

Follow the steps in CCPA settings to add Mintegral to the CCPA ad partners list in the Ad Manager UI.

Native ads

Ad rendering

The Mintegral adapter returns its native ads as NativeAd objects. It populates the following fields for a NativeAd.

Field Assets always included by Mintegral adapter
Headline
Image 1
Body
Icon
Call to action
Star rating
Store
Price
Advertiser

1 The Mintegral adapter does not provide direct access to the main image asset for its native ads. Instead, the adapter populates the MediaView with a video or an image.

Error codes

If the adapter fails to receive an ad from Mintegral, you can check the underlying error from the ad response using ResponseInfo.getAdapterResponse() under the following classes:

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

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

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.

Mintegral Android Mediation Adapter Changelog

Version 16.7.61.0

  • Verified compatibility with Mintegral SDK 16.7.61.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Mintegral SDK version 16.7.61.

Version 16.7.51.0

  • Verified compatibility with Mintegral SDK 16.7.51.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Mintegral SDK version 16.7.51.

Version 16.7.41.0

  • Verified compatibility with Mintegral SDK 16.7.41.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Mintegral SDK version 16.7.41.

Version 16.7.31.0

  • Verified compatibility with Mintegral SDK 16.7.31.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Mintegral SDK version 16.7.31.

Version 16.7.21.0

  • Verified compatibility with Mintegral SDK 16.7.21.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Mintegral SDK version 16.7.21.

Version 16.7.11.0

  • Verified compatibility with Mintegral SDK 16.7.11.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Mintegral SDK version 16.7.11.

Version 16.6.71.0

  • Verified compatibility with Mintegral SDK 16.6.71.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Mintegral SDK version 16.6.71.

Version 16.6.61.0

  • Updated the minimum required Google Mobile Ads SDK version to 23.0.0.
  • Verified compatibility with Mintegral SDK 16.6.61.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Mintegral SDK version 16.6.61.

Version 16.6.51.0

  • Verified compatibility with Mintegral SDK 16.6.51.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Mintegral SDK version 16.6.51.

Version 16.6.41.0

  • Verified compatibility with Mintegral SDK 16.6.41.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Mintegral SDK version 16.6.41.

Version 16.6.34.0

  • Verified compatibility with Mintegral SDK 16.6.34.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Mintegral SDK version 16.6.34.

Version 16.6.21.0

  • Verified compatibility with Mintegral SDK 16.6.21.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Mintegral SDK version 16.6.21.

Version 16.5.91.1

  • Added bidding support for app open ad format.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Mintegral SDK version 16.5.91.

Version 16.5.91.0

  • Verified compatibility with Mintegral SDK 16.5.91.
  • Updated the minimum required Google Mobile Ads SDK version to 22.6.0.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Mintegral SDK version 16.5.91.

Version 16.5.51.0

  • Verified compatibility with Mintegral SDK 16.5.51.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Mintegral SDK version 16.5.51.

Version 16.5.41.0

  • Verified compatibility with Mintegral SDK 16.5.41.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Mintegral SDK version 16.5.41.

Version 16.5.31.0

  • Verified compatibility with Mintegral SDK 16.5.31.
  • Reverted the adapter to depend on Google Mobile Ads SDK version 22.3.0.
  • Added waterfall support for app open ad format.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Mintegral SDK version 16.5.31.

Version 16.5.21.0

  • Verified compatibility with Mintegral SDK 16.5.21.
  • Updated the minimum required Google Mobile Ads SDK version to 22.4.0.

Built and tested with:

  • Google Mobile Ads SDK version 22.4.0.
  • Mintegral SDK version 16.5.21.

Version 16.5.11.0

  • Added watermark support for bidding ads.
  • Verified compatibility with Mintegral SDK 16.5.11.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Mintegral SDK version 16.5.11.

Version 16.4.91.0

  • Verified compatibility with Mintegral SDK 16.4.91.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Mintegral SDK version 16.4.91.

Version 16.4.81.0

  • Verified compatibility with Mintegral SDK 16.4.81.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Mintegral SDK version 16.4.81.

Version 16.4.71.0

  • Verified compatibility with Mintegral SDK 16.4.71.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Mintegral SDK version 16.4.71.

Version 16.4.61.0

  • Verified compatibility with Mintegral SDK 16.4.61.

Built and tested with:

  • Google Mobile Ads SDK version 22.1.0.
  • Mintegral SDK version 16.4.61.

Version 16.4.51.0

  • Verified compatibility with Mintegral SDK 16.4.51.

Built and tested with:

  • Google Mobile Ads SDK version 22.1.0.
  • Mintegral SDK version 16.4.51.

Version 16.4.41.0

  • Fixed an issue where banner ads were rendered with incorrect sizes.
  • Verified compatibility with Mintegral SDK 16.4.41.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Mintegral SDK version 16.4.41.

Version 16.4.31.0

  • Verified compatibility with Mintegral SDK 16.4.31.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Mintegral SDK version 16.4.31.

Version 16.4.21.0

  • Updated adapter to use new VersionInfo class.
  • Updated the minimum required Google Mobile Ads SDK version to 22.0.0.
  • Verified compatibility with Mintegral SDK 16.4.21.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Mintegral SDK version 16.4.21.

Version 16.3.91.0

  • Verified compatibility with Mintegral SDK 16.3.91.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Mintegral SDK version 16.3.91.

Version 16.3.81.0

  • Verified compatibility with Mintegral SDK 16.3.81.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Mintegral SDK version 16.3.81.

Version 16.3.71.0

  • Verified compatibility with Mintegral SDK 16.3.71.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Mintegral SDK version 16.3.71.

Version 16.3.61.0

  • Verified compatibility with Mintegral SDK 16.3.61.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Mintegral SDK version 16.3.61.

Version 16.3.51.1

  • Added waterfall support for banner (includes MREC), interstitial, rewarded and native ad formats.
  • Updated the minimum required Google Mobile Ads SDK version to 21.5.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Mintegral SDK version 16.3.51.

Version 16.3.51.0

  • Verified compatibility with Mintegral SDK 16.3.51.

Built and tested with:

  • Google Mobile Ads SDK version 21.4.0.
  • Mintegral SDK version 16.3.51.

Version 16.3.41.0

  • Verified compatibility with Mintegral SDK 16.3.41.
  • Updated the minimum required Google Mobile Ads SDK version to 21.4.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.4.0.
  • Mintegral SDK version 16.3.41.

Version 16.3.11.0

  • Verified compatibility with Mintegral SDK 16.3.11.
  • Updated the adapter to forward onUserEarnedReward() before onAdClosed() when showing rewarded ads.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Mintegral SDK version 16.3.11.

Version 16.2.61.0

  • Initial release!
  • Added bidding support for banner (includes MREC), interstitial, rewarded and native ad formats.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Mintegral SDK version 16.2.61.