This guide shows you how to use the 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 a Unity 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. However, in descriptions and instructions here, labels and buttons are referred to by their English language equivalents. "URL スキーム," for example, is "URL Scheme," and so on.
Supported integrations and ad formats
The mediation adapter for maio has the following capabilities:
Integration | |
---|---|
Bidding | |
Waterfall | |
Formats | |
Banner | |
Interstitials | |
Rewarded |
Requirements
- Unity 4 or higher
- Latest Google Mobile Ads SDK
- To deploy on Android
- Android API level 21 or higher
- To deploy on iOS
- iOS deployment target of 12.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 configurations in maio UI
ก่อนอื่น ให้ลงชื่อสมัครใช้หรือลงชื่อเข้าสู่ระบบบัญชี maio ของคุณ คลิกปุ่ม การจัดการแอปพลิเคชันในแถบด้านซ้าย แล้วคลิกแอปใหม่
เลือกแท็บประเภทโฆษณาที่ต้องการ
โฆษณาคั่นระหว่างหน้า
ป้อนชื่อของแอป เลือกแพลตฟอร์ม และระบุ URL ของแอป เลือกประเภทโฆษณาเป็นโฆษณาวิดีโอคั่นระหว่างหน้า แล้วคลิกอัปเดต
Android
iOS
ได้รับรางวัลแล้ว
ป้อนชื่อของแอป เลือกแพลตฟอร์ม และระบุ URL ของแอป เลือกรางวัลวิดีโอเป็นประเภทโฆษณา แล้วคลิกอัปเดต
Android
iOS
ในหน้าการจัดการแอปพลิเคชัน ให้จดรหัสสื่อ แต่คุณต้องตั้งค่า Ad Manager หน่วยโฆษณาในส่วนถัดไป
Android
iOS
ในหน้า Zone Management ให้จดบันทึก Zone ID และยังเป็นสิ่งจำเป็นในการตั้งค่า Ad Manager หน่วยโฆษณาในส่วนถัดไปด้วย
Android
iOS
Step 2: Set up maio demand in Ad Manager UI
กำหนดการตั้งค่าสื่อกลางสำหรับหน่วยโฆษณา
Android
ดูวิธีการได้ที่ขั้นตอนที่ 2 ในคู่มือสําหรับ Android
iOS
โปรดดูวิธีการในขั้นตอนที่ 2 ในคู่มือสำหรับ iOS
Step 3: Import the maio SDK and adapter
Download the latest version of Google Mobile Ads mediation plugin for maio
from the download link in the Changelog
for maio and extract the GoogleMobileAdsMaioMediation.unitypackage
from the
zip file.
In your Unity project editor, select Assets > Import Package > Custom
Package and find the GoogleMobileAdsMaioMediation.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: Add required code
Android
No additional code is required for maio integration.
iOS
SKAdNetwork integration
Follow maio's documentation
to add the SKAdNetwork identifiers to your project's Info.plist
file.
Step 5: Test your implementation
เปิดใช้โฆษณาทดสอบ
อย่าลืม ลงทะเบียนอุปกรณ์ทดสอบ สำหรับ Ad Manager
ผู้เผยแพร่โฆษณาที่ใช้ SDK โฆษณาในอุปกรณ์เคลื่อนที่ของ Google เวอร์ชัน 7.26.0 ขึ้นไปจะได้รับโฆษณาทดสอบจาก maio โดยอัตโนมัติในโทรศัพท์และแท็บเล็ตที่ลงทะเบียนเป็นอุปกรณ์ทดสอบเมื่อส่งคําขอ
ยืนยันโฆษณาทดสอบ
ในการยืนยันว่าคุณได้รับโฆษณาทดสอบจาก maio ให้เปิดใช้ การทดสอบแหล่งที่มาของโฆษณาแหล่งเดียว ในเครื่องมือตรวจสอบโฆษณาโดยใช้ maio (Waterfall) แหล่งที่มาของโฆษณา
Error codes
If the adapter fails to receive an ad from maio, publishers can check the
underlying error from the ad response using
ResponseInfo
under the
following classes:
Android
Format | Class name |
---|---|
Interstitial | jp.maio.sdk.android.mediation.admob.adapter.Interstitial |
Rewarded | jp.maio.sdk.android.mediation.admob.adapter.Rewarded |
iOS
Format | Class name |
---|---|
Interstitial | GADMMaioInterstitialAdapter |
Rewarded | GADMMaioRewardedAdapter |
Here are the codes and accompanying messages thrown by the maio adapter when an ad fails to load:
Android
Error code | Reason |
---|---|
0-10 | maio returned an SDK-specific error. See code and maio's documentation for more details. |
101 | Maio does not have an ad available. |
102 | Invalid server parameters (e.g. missing Placement ID). |
103 | Context used to load an ad was not an `Activity` instance. |
iOS
Error code | Reason |
---|---|
0-10 | maio returned an SDK-specific error. See maio's code for more details. |
101 | maio does not yet have an ad available. |
102 | Invalid server parameters (e.g. missing Placement ID). |
103 | The maio adapter does not support the ad format being requested. |
104 | An ad is already loaded for this network configuration. |
maio Unity Mediation Plugin Changelog
Version 2.0.3
- Supports maio Android adapter version 1.1.16.3.
- Supports maio iOS adapter version 2.1.5.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0.
Version 2.0.2
- Supports maio Android adapter version 1.1.16.3.
- Supports maio iOS adapter version 2.1.4.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0.
Version 2.0.1
- Supports maio Android adapter version 1.1.16.2.
- Supports maio iOS adapter version 2.1.3.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0.
Version 2.0.0
- Supports maio Android adapter version 1.1.16.2.
- Supports maio iOS adapter version 2.1.1.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 8.6.0.
Version 1.4.3
- Moved adapter content to
GoogleMobileAds/Mediation/Maio/
. - Supports maio Android adapter version 1.1.16.2.
- Supports maio iOS adapter version 1.6.3.1.
- Built and tested with the Google Mobile Ads Unity Plugin version 8.1.0.
Version 1.4.2
- Supports maio Android adapter version 1.1.16.1.
- Supports maio iOS adapter version 1.6.3.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.4.0.
Version 1.4.1
- Supports maio Android adapter version 1.1.16.1.
- Supports maio iOS adapter version 1.6.2.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.1.0.
Version 1.4.0
- Supports maio Android adapter version 1.1.16.0.
- Supports maio iOS adapter version 1.6.0.1.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.0.0.
Version 1.3.6
- Supports maio Android adapter version 1.1.16.0.
- Supports maio iOS adapter version 1.5.8.0.
Version 1.3.5
- Supports maio Android adapter version 1.1.15.0.
- Supports maio iOS adapter version 1.5.6.1.
Version 1.3.4
- Supports maio Android adapter version 1.1.11.1.
- Supports maio iOS adapter version 1.5.4.0.
Version 1.3.3
- Supports maio Android adapter version 1.1.11.1.
- Supports maio iOS adapter version 1.5.3.1.
Version 1.3.2
- Supports maio Android adapter version 1.1.11.0.
- Supports maio iOS adapter version 1.5.2.1.
Version 1.3.1
- Supports maio Android adapter version 1.1.10.0.
- Supports maio iOS adapter version 1.5.1.0.
Version 1.3.0
- Supports maio Android adapter version 1.1.10.0.
- Supports maio iOS adapter version 1.5.0.0.
Version 1.2.3
- Updated the plugin to support the new Rewarded API.
- Supports maio Android adapter version 1.1.7.0.
- Supports maio iOS adapter version 1.4.6.0.
Version 1.2.2
- Supports maio Android adapter version 1.1.6.0.
- Supports maio iOS adapter version 1.4.2.0.
Version 1.2.1
- Supports maio Android adapter version 1.1.6.0.
- Supports maio iOS adapter version 1.4.1.0.
Version 1.2.0
- Supports maio Android adapter version 1.1.4.1.
- Supports maio iOS adapter version 1.4.0.0.
Version 1.1.3
- Supports maio Android adapter version 1.1.3.1.
- Supports maio iOS adapter version 1.3.2.0.
Version 1.1.2
- Supports maio Android adapter version 1.1.3.0.
- Supports maio iOS adapter version 1.3.2.0.
Version 1.1.1
- Supports maio Android adapter version 1.1.1.0.
- Supports maio iOS adapter version 1.3.1.1.
Version 1.1.0
- Supports maio Android adapter version 1.1.0.0.
- Supports maio iOS adapter version 1.3.0.0.
Version 1.0.2
- Supports maio Android SDK version 1.0.8.
- Supports maio iOS SDK version 1.2.19.
Version 1.0.1
- Supports maio Android SDK version 1.0.7.
- Supports maio iOS SDK version 1.2.19.
Version 1.0.0
- First release!
- Supports maio Android SDK version 1.0.6.
- Supports maio iOS SDK version 1.2.18.