This guide shows you how to use Google Mobile Ads SDK to load and display ads from maio using mediation , covering waterfall integrations. It covers how to add maio to an ad unit's mediation configuration, and how to integrate the maio SDK and adapter into an Android app.
The dashboard interface for maio uses Japanese text for its labels, buttons, and descriptions, and the screenshots in this guide have not been translated. In this guide's descriptions and instructions however, labels and buttons are referenced with their English language equivalents. "URL スキーム," for example, is "URL Scheme".
ادغامها و قالبهای تبلیغاتی پشتیبانیشده
The mediation adapter for maio has the following capabilities:
| ادغام | |
|---|---|
| مناقصه | |
| آبشار | |
| قالبها | |
| بنر | |
| بینابینی | |
| پاداش داده شده | |
| بومی | |
الزامات
- اندروید API سطح ۲۳ یا بالاتر
- مایو SDK نسخه ۱.۰.۷ یا بالاتر
جدیدترین Google Mobile Ads SDK
راهنمای شروع میانجیگری را تکمیل کنید.
مرحله ۱: تنظیمات را در رابط کاربری maio تنظیم کنید
First, sign up or log in to your maio account. Click the Application management button on the left sidebar and click on New app .

Select the tab corresponding to your preferred Ad Type .
بینابینی
Enter the Name of your app, select the platform and provide your App URL . Select Video interstitial as the Ad Type , and then click Update .

پاداش داده شده
Enter the Name of your app, select the platform and provide your App URL . Select Video Rewards as the Ad Type , and then click Update .

In the Application Management page, make a note of the Media ID . It's needed to set up your Ad Manager ad unit in the next section.

In the Zone Management page, make a note of the Zone ID . It will also be needed to set up your Ad Manager ad unit in the next section.


مرحله ۲: تنظیم درخواست خرید در رابط کاربری مدیریت تبلیغات
تنظیمات میانجیگری را برای واحد تبلیغاتی خود پیکربندی کنید
وارد حساب مدیر تبلیغات خود شوید.
Navigate to Delivery > Yield groups and click the New yield group button.

Enter a unique Name for your yield group, set the Status to Active , select your Ad Format , and set the Inventory type to Mobile App . Under the Targeting > Inventory section, select the ad unit under Inventory and Mobile application to which you want to add mediation.
سپس، روی دکمهی «افزودن شریک Yield» کلیک کنید.

If you already have a Yield partner for maio, you can select it. Otherwise, select Create a new yield partner .
Select maio as the Ad network , enter a unique Name and enable Mediation .
Turn on Automatic data collection , and enter the API ID and API KEY obtained in the previous section.

Once the Yield partner is selected, choose Mobile SDK Mediation as the Integration type , Android as the Platform , and Active as the Status . Enter the Media ID and Zone ID obtained in the previous section. Then, enter a Default CPM value.

پس از اتمام کار، روی ذخیره در پایین صفحه کلیک کنید.
مرحله ۳: SDK و آداپتور maio را وارد کنید
ادغام با اندروید استودیو (توصیه میشود)
In your project-level settings.gradle.kts file, add the following repositories:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://imobile-maio.github.io/maven")
}
}
}
Then, in your app-level build.gradle.kts file, add the following implementation dependencies and configurations. Use the latest versions of the maio SDK and adapter:
dependencies {
implementation("com.google.android.gms:play-services-ads:24.9.0")
implementation("com.google.ads.mediation:maio:2.0.8.0")
}
ادغام دستی
- Download the latest version of maio Android SDK and add it to your project.
- Navigate to the maio adapter artifacts on Google's Maven Repository. Select the latest version, download the maio adapter's `.aar' file, and add it to your project.
مرحله ۴: اضافه کردن کد مورد نیاز
No additional code is required for maio Android integration.
مرحله ۵: پیادهسازی خود را آزمایش کنید
فعال کردن تبلیغات آزمایشی
Make sure you register your test device for Ad Manager.
Publishers using version 11.6.0 or higher of Google Mobile Ads SDK will automatically receive test ads from maio on phones and tablets registered as test devices when making requests.
تأیید تبلیغات آزمایشی
To verify that you are receiving test ads from maio, enable single ad source testing in ad inspector using the maio (Waterfall) ad source(s).
کدهای خطا
If the adapter fails to receive an ad from maio, publishers can check the underlying error from the ad response using ResponseInfo.getAdapterResponses() under the following classes:
| قالب | نام کلاس |
|---|---|
| بینابینی | jp.maio.sdk.android.mediation.admob.adapter.Interstitial |
| پاداش داده شده | jp.maio.sdk.android.mediation.admob.adapter.Rewarded |
Here are the codes and accompanying messages thrown by the maio adapter when an ad fails to load:
| کد خطا | دلیل |
|---|---|
| ۰-۱۰ | maio returned an SDK-specific error. See code and maio's documentation for more details. |
| ۱۰۱ | مایو هیچ تبلیغی در دسترس ندارد. |
| ۱۰۲ | Invalid server parameters (eg missing Placement ID). |
| ۱۰۳ | Context used to load an ad was not an `Activity` instance. |
تغییرات آداپتور میانجیگری اندروید maio
نسخه ۲.۰.۸.۰
- Verified compatibility with maio SDK version 2.0.8.
ساخته و آزمایش شده با:
- نسخه ۲۴.۹.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۲.۰.۸.۰ کیت توسعه نرمافزاری مایو.
نسخه ۲.۰.۷.۰
- Verified compatibility with maio SDK version 2.0.7.
ساخته و آزمایش شده با:
- نسخه ۲۴.۷.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۲.۰.۷.۰ کیت توسعه نرمافزاری مایو.
نسخه ۲.۰.۶.۰
- Removed class-level references to Context. Can help reduce memory leak issues
- Verified compatibility with maio SDK version 2.0.6.
ساخته و آزمایش شده با:
- نسخه ۲۴.۶.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۲.۰.۶.۰ کیت توسعه نرمافزاری مایو.
نسخه ۲.۰.۵.۰
- Verified compatibility with maio SDK version 2.0.5.
ساخته و آزمایش شده با:
- Google Mobile Ads SDK version 24.4.0.
- نسخه ۲.۰.۵.۰ کیت توسعه نرمافزاری مایو.
نسخه ۲.۰.۴.۰
- Verified compatibility with maio SDK version 2.0.4.
ساخته و آزمایش شده با:
- نسخه ۲۴.۳.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۲.۰.۴.۰ کیت توسعه نرمافزاری مایو.
نسخه ۲.۰.۳.۱
- Updated the minimum required Android API level to 23.
- Updated the minimum required Google Mobile Ads SDK version to 24.0.0.
ساخته و آزمایش شده با:
- Google Mobile Ads SDK version 24.0.0.
- نسخه ۲.۰.۳.۰ کیت توسعه نرمافزاری مایو.
نسخه ۲.۰.۳.۰
- Verified compatibility with maio SDK version 2.0.3.0.
ساخته و آزمایش شده با:
- نسخه ۲۳.۶.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۲.۰.۳.۰ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۶.۳
- Updated the minimum required Google Mobile Ads SDK version to 23.0.0.
- Verified compatibility with maio SDK version 1.1.16.
ساخته و آزمایش شده با:
- نسخه ۲۳.۰.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۶ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۶.۲
- آداپتور برای استفاده از کلاس
VersionInfoجدید بهروزرسانی شد. - Updated the minimum required Google Mobile Ads SDK version to 22.0.0.
ساخته و آزمایش شده با:
- نسخه ۲۲.۰.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۶ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۶.۱
- Updated
compileSdkVersionandtargetSdkVersionto API 31. - Updated the minimum required Google Mobile Ads SDK version to 21.0.0.
- Updated the minimum required Android API level to 19.
ساخته و آزمایش شده با:
- نسخه ۲۱.۰.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۶ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۶.۰
- Updated error codes to capture additional maio errors.
- Verified compatibility with maio SDK version 1.1.16.
- Updated the minimum required Google Mobile Ads SDK version to 20.4.0.
ساخته و آزمایش شده با:
- نسخه ۲۰.۴.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۶ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۵.۰
- Verified compatibility with maio SDK version 1.1.15.
- Updated the minimum required Google Mobile Ads SDK version to 20.0.0.
ساخته و آزمایش شده با:
- نسخه ۲۰.۰.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۵ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۴.۰
- Added standardized adapter error codes and messages.
- Verified compatibility with maio SDK version 1.1.14.
- Updated the minimum required Google Mobile Ads SDK version to 19.8.0.
ساخته و آزمایش شده با:
- نسخه ۱۹.۸.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۴ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۳.۰
- Verified compatibility with maio SDK version 1.1.13.
- Updated the minimum required Google Mobile Ads SDK version to 19.5.0.
ساخته و آزمایش شده با:
- نسخه ۱۹.۵.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۳ کیت توسعه نرمافزاری مایو.
Version 1.1.12.0
- Updated the minimum required Google Mobile Ads SDK version to 19.4.0.
ساخته و آزمایش شده با:
- نسخه ۱۹.۴.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل
- نسخه ۱.۱.۱۲ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۱.۱
- To limit timouts, ad requests will now immediately fail if maio does not have an ad ready to be shown.
- Updated the minimum required Google Mobile Ads SDK version to 19.1.0.
ساخته و آزمایش شده با:
- نسخه ۱۹.۱.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۱ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۱.۰
- Verified compatibility with maio SDK version 1.1.11.
- Updated the minimum required Google Mobile Ads SDK version to 18.3.0.
ساخته و آزمایش شده با:
- نسخه ۱۸.۳.۰ کیت توسعه نرمافزاری تبلیغات موبایلی گوگل.
- نسخه ۱.۱.۱۱ کیت توسعه نرمافزاری مایو.
نسخه ۱.۱.۱۰.۰
- Verified compatibility with maio SDK version 1.1.10.
- Updated the minimum required Google Mobile Ads SDK version to 18.2.0.
نسخه ۱.۱.۸.۰
- Verified compatibility with maio SDK version 1.1.8.
- Updated the minimum required Google Mobile Ads SDK version to 18.1.0.
نسخه ۱.۱.۷.۰
- رفع اشکالات.
- Verified compatibility with maio SDK version 1.1.7.
نسخه ۱.۱.۶.۱
- آداپتور بهروزرسانی شد تا از API پاداشدهی جدید پشتیبانی کند.
- Updated the minimum required Google Mobile Ads SDK version to 17.2.0.
نسخه ۱.۱.۶.۰
- Verified compatibility with maio SDK version 1.1.6.
نسخه ۱.۱.۵.۰
- Verified compatibility with maio SDK version 1.1.5.
نسخه ۱.۱.۴.۰
- Verified compatibility with maio SDK version 1.1.4.
نسخه ۱.۱.۳.۱
- Updated the adapter to work with instance class instead of singleton.
نسخه ۱.۱.۳.۰
- Verified compatibility with maio SDK version 1.1.3.
نسخه ۱.۱.۲.۱
- Updated the adapter with updated initialize functions.
نسخه ۱.۱.۲.۰
- Verified compatibility with maio SDK version 1.1.2.
نسخه ۱.۱.۱.۱
- Updated the adapter to invoke the
onRewardedVideoComplete()ad event.
نسخه ۱.۱.۱.۰
- Verified compatibility with maio SDK version 1.1.1.
نسخه ۱.۱.۰.۰
- Verified compatibility with maio SDK version 1.1.0.
نسخه ۱.۰.۸.۰
- Verified compatibility with maio SDK version 1.0.8.
نسخه ۱.۰.۷.۱
- Fixed an issue that could cause NullPointerExceptions to occur when ads fail to load.
نسخه ۱.۰.۷.۰
- Added ability to enable test mode by adding test device id to
AdRequest. - Verified compatibility with maio SDK version 1.0.7.
نسخه ۱.۰.۶.۰
- اولین انتشار!
- Added support for interstitials and rewarded video ads.