This guide shows you how to use the Google Mobile Ads SDK to load and display ads from maio using AdMob 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".
Supported integrations and ad formats
The mediation adapter for maio has the following capabilities:
Integration | |
---|---|
Bidding | |
Waterfall | |
Formats | |
Banner | |
Interstitial | |
Rewarded | |
Native |
Requirements
- Android API level 21 or higher
- maio SDK 1.0.7 or higher
Latest Google Mobile Ads SDK
Complete the mediation Get started guide
Step 1: Set up configurations in maio UI
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.
Interstitial
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.
Rewarded
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 AdMob 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 AdMob ad unit in the next section.
Step 2: Set up maio demand in AdMob UI
광고 단위에 대한 미디에이션 설정 구성
maio 를 광고 단위의 미디에이션 구성에 추가해야 합니다.
먼저 AdMob 계정에 로그인합니다. 그런 다음 미디에이션 탭으로 이동합니다. 수정할 기존 미디에이션 그룹이 있는 경우 해당 미디에이션 그룹의 이름을 클릭하여 수정한 후 maio 광고 소스로 추가로 건너뜁니다.
새 미디에이션 그룹을 만들려면 미디에이션 그룹 만들기를 선택합니다.
광고 형식과 플랫폼을 입력하고 계속을 클릭합니다.
미디에이션 그룹에 이름을 지정하고 타겟팅할 위치를 선택합니다. 미디에이션 그룹 상태를 사용으로 설정한 다음 광고 단위 추가를 클릭합니다.
이 미디에이션 그룹을 하나 이상의 기존AdMob 광고 단위와 연결합니다. 그런 다음 완료를 클릭합니다.
이제 광고 단위 카드가 선택한 광고 단위로 채워진 것을 볼 수 있습니다.
광고 소스로 maio 추가
광고 소스 섹션의 폭포식 구조 카드에서 광고 소스 추가를 선택합니다. 그런 다음 maio을 선택합니다.
maio를 선택하고 최적화 스위치를 사용 설정합니다. 이전 섹션에서 가져온 API ID and API KEY을 입력하여maio에 대해 광고 소스 최적화를 설정합니다. 그런 다음maio 에 eCPM 값을 입력하고 계속을 클릭합니다.이미 maio에 대한 매핑이 있는 경우 해당 매핑을 선택할 수 있습니다. 그렇지 않으면 매핑 추가를 클릭합니다.
그런 다음 이전 섹션에서 얻은 Media ID and Zone ID를 입력합니다. 그런 다음 완료를 클릭합니다.
Step 3: Import the maio SDK and adapter
Android Studio integration (recommended)
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:23.2.0")
implementation("com.google.ads.mediation:maio:1.1.16.3")
}
Manual integration
- 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.
Step 4: Add required code
No additional code is required for maio Android integration.
Step 5: Test your implementation
테스트 광고 사용 설정
AdMob
Google 모바일 광고 SDK 버전 11.6.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.getAdapterResponses()
under the following classes:
Format | Class name |
---|---|
Interstitial | jp.maio.sdk.android.mediation.admob.adapter.Interstitial |
Rewarded | 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:
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. |
maio Android Mediation Adapter Changelog
Version 1.1.16.3
- Updated the minimum required Google Mobile Ads SDK version to 23.0.0.
- Verified compatibility with maio SDK version 1.1.16.
Built and tested with:
- Google Mobile Ads SDK version 23.0.0.
- Maio SDK version 1.1.16.
Version 1.1.16.2
- Updated adapter to use new
VersionInfo
class. - Updated the minimum required Google Mobile Ads SDK version to 22.0.0.
Built and tested with:
- Google Mobile Ads SDK version 22.0.0.
- Maio SDK version 1.1.16.
Version 1.1.16.1
- Updated
compileSdkVersion
andtargetSdkVersion
to API 31. - Updated the minimum required Google Mobile Ads SDK version to 21.0.0.
- Updated the minimum required Android API level to 19.
Built and tested with:
- Google Mobile Ads SDK version 21.0.0.
- Maio SDK version 1.1.16.
Version 1.1.16.0
- 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.
Built and tested with:
- Google Mobile Ads SDK version 20.4.0.
- Maio SDK version 1.1.16.
Version 1.1.15.0
- Verified compatibility with maio SDK version 1.1.15.
- Updated the minimum required Google Mobile Ads SDK version to 20.0.0.
Built and tested with:
- Google Mobile Ads SDK version 20.0.0.
- Maio SDK version 1.1.15.
Version 1.1.14.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.
Built and tested with:
- Google Mobile Ads SDK version 19.8.0.
- Maio SDK version 1.1.14.
Version 1.1.13.0
- Verified compatibility with maio SDK version 1.1.13.
- Updated the minimum required Google Mobile Ads SDK version to 19.5.0.
Built and tested with:
- Google Mobile Ads SDK version 19.5.0.
- Maio SDK version 1.1.13.
Version 1.1.12.0
- Updated the minimum required Google Mobile Ads SDK version to 19.4.0.
Built and tested with:
- Google Mobile Ads SDK version 19.4.0.
- Maio SDK version 1.1.12.
Version 1.1.11.1
- 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.
Built and tested with:
- Google Mobile Ads SDK version 19.1.0.
- Maio SDK version 1.1.11.
Version 1.1.11.0
- Verified compatibility with maio SDK version 1.1.11.
- Updated the minimum required Google Mobile Ads SDK version to 18.3.0.
Built and tested with:
- Google Mobile Ads SDK version 18.3.0.
- Maio SDK version 1.1.11.
Version 1.1.10.0
- Verified compatibility with maio SDK version 1.1.10.
- Updated the minimum required Google Mobile Ads SDK version to 18.2.0.
Version 1.1.8.0
- Verified compatibility with maio SDK version 1.1.8.
- Updated the minimum required Google Mobile Ads SDK version to 18.1.0.
Version 1.1.7.0
- Bug Fixes.
- Verified compatibility with maio SDK version 1.1.7.
Version 1.1.6.1
- Updated adapter to support new Rewarded API.
- Updated the minimum required Google Mobile Ads SDK version to 17.2.0.
Version 1.1.6.0
- Verified compatibility with maio SDK version 1.1.6.
Version 1.1.5.0
- Verified compatibility with maio SDK version 1.1.5.
Version 1.1.4.0
- Verified compatibility with maio SDK version 1.1.4.
Version 1.1.3.1
- Updated the adapter to work with instance class instead of singleton.
Version 1.1.3.0
- Verified compatibility with maio SDK version 1.1.3.
Version 1.1.2.1
- Updated the adapter with updated initialize functions.
Version 1.1.2.0
- Verified compatibility with maio SDK version 1.1.2.
Version 1.1.1.1
- Updated the adapter to invoke the
onRewardedVideoComplete()
ad event.
Version 1.1.1.0
- Verified compatibility with maio SDK version 1.1.1.
Version 1.1.0.0
- Verified compatibility with maio SDK version 1.1.0.
Version 1.0.8.0
- Verified compatibility with maio SDK version 1.0.8.
Version 1.0.7.1
- Fixed an issue that could cause NullPointerExceptions to occur when ads fail to load.
Version 1.0.7.0
- Added ability to enable test mode by adding test device id to
AdRequest
. - Verified compatibility with maio SDK version 1.0.7.
Version 1.0.6.0
- First release!
- Added support for interstitials and rewarded video ads.