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 an iOS 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," and so on.
Supported integrations and ad formats
The AdMob mediation adapter for maio has the following capabilities:
Integration | |
---|---|
Bidding | |
Waterfall | |
Formats | |
Banner | |
Interstitial | |
Rewarded | |
Native |
Requirements
- iOS deployment target of 11.0 or higher
- [For bidding]: maio adapter 1.5.8.0 or higher (latest version recommended)
- Latest Google Mobile Ads SDK
Step 1: Set up maio network
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, set the platform as iOS and provide your App URL. Select Video interstitial as the Ad Type, and then click Update.
Rewarded
Enter the Name of your app, set the platform as iOS 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.

[Waterfall only] Get API ID and API Key
In addition to Media ID and Zone ID, you will need API ID and API KEY to set up your iOS ad unit ID for mediation.
In Reporting API page, make a note of API ID and API KEY.
Step 2: Configure mediation settings for your AdMob ad unit
You need to add maio to the mediation configuration for your ad unit. First sign in to your AdMob account.
Navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add maio as an ad source.
To create a new mediation group, select Create Mediation Group.
Enter your Ad Format and Platform, then click Continue.

Give your mediation group a Name, and select locations to target. Next, set the mediation group status to Enabled, and then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then, click Done.

You should now see the ad units card populated with the ad units you selected as shown below:

Add maio as an ad source
Bidding
Under the Bidding card in the Ad Sources section, select Add Ad Source. Then select maio.
Next, enter the Publisher ID obtained in the previous section and click Done.
Finally, click Save.
Waterfall
In the Ad Sources card, select Add Ad Network. Select maio as the ad network and enter the API ID and API KEY obtained in previous section to set up ad source optimization for maio. Then enter an eCPM value for maio and click Continue.
If you already have a mapping for maio, you can simply select it. Otherwise, click Add mapping.
Next, enter a Mapping name, Media ID and Zone ID obtained in the previous section. Then click Done.
Using rewarded video ads
In the settings for your rewarded video ad unit, provide values for the reward amount and reward type. Then, to ensure you provide the same reward to the user no matter which ad network is served, check the Apply to all networks in Mediation groups box.
If you don't apply this setting, the maio adapter defaults to a reward
of type ""
(empty string) with a value of 1
. The maio SDK does not
provide specific reward values for its rewarded video ads.
Step 3: Import the maio SDK and adapter
Using CocoaPods (recommended)
Add the following line to your project's Podfile:
pod 'GoogleMobileAdsMediationMaio'
From the command line run:
pod install --repo-update
Manual integration
- Download the latest version of the maio SDK.
- Download the latest version of the maio adapter from the download link in the
Changelog,
and link
maioAdapter.framework
in your project.
Step 4: Additional code required
No additional code is required for maio iOS integration.
Step 5: Test your implementation
Publishers using version 7.26.0 or higher of the Google Mobile Ads SDK will
automatically receive test ads from maio on phones and tablets registered as
test devices
when making requests.
Error codes
If the adapter fails to receive an ad from maio,
publishers can check the underlying error from the ad response using
GADResponseInfo.adNetworkInfoArray
under the following classes:
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:
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 iOS Mediation Adapter Changelog
Next Version
- Removed support of the
armv7
architecture. - Now requires minimum iOS version 11.0.
- Now requires Google Mobile Ads SDK version 10.4.0 or higher.
Version 1.6.3.1
- Now requires Google Mobile Ads SDK version 10.0.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 10.0.0.
- Maio SDK version 1.6.3.
- MaioOB SDK version 2.0.0-alpha.
Version 1.6.3.0
- Updated the adapter to use the
didRewardUser
API. - Now requires Google Mobile Ads SDK version 9.8.0 or higher.
- Verified compatibility with maio SDK version 1.6.3 and maioOB SDK version 2.0.0-alpha.
Built and tested with:
- Google Mobile Ads SDK version 9.12.0.
- Maio SDK version 1.6.3.
- MaioOB SDK version 2.0.0-alpha.
Version 1.6.2.0
- Verified compatibility with maio SDK version 1.6.2 and maioOB SDK version 2.0.0-alpha.
Built and tested with:
- Google Mobile Ads SDK version 9.5.0.
- Maio SDK version 1.6.2.
- MaioOB SDK version 2.0.0-alpha.
Version 1.6.1.0
- Verified compatibility with maio SDK version 1.6.1 and maioOB SDK version 2.0.0-alpha.
Built and tested with:
- Google Mobile Ads SDK version 9.2.0.
- Maio SDK version 1.6.1.
- MaioOB SDK version 2.0.0-alpha.
Version 1.6.0.1
- Verified compatibility with Google Mobile Ads SDK version 9.0.0.
- Now requires Google Mobile Ads SDK version 9.0.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 9.0.0.
- Maio SDK version 1.6.0.
- MaioOB SDK version 2.0.0-alpha.
Version 1.6.0.0
- Verified compatibility with maio SDK version 1.6.0 and maioOB SDK version 2.0.0-alpha.
Built and tested with:
- Google Mobile Ads SDK version 8.13.0.
- Now requires minimum iOS version of 10.0.
- Maio SDK version 1.6.0.
- MaioOB SDK version 2.0.0-alpha.
Version 1.5.8.0
- Verified compatibility with maio SDK version 1.5.8 and maioOB SDK version 2.0.0-alpha.
- Added bidding capability to the adapter for interstitial and rewarded ad formats.
- Relaxed dependency to Google Mobile Ads SDK version 8.0.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 8.7.0.
- Maio SDK version 1.5.8.
- MaioOB SDK version 2.0.0-alpha.
Version 1.5.6.1
- Added standardized adapter error codes and messages.
- Updated the adapter to use the
.xcframework
format. - Fixed a bug where rewarded ad events were sometimes not forwarded.
- Now requires Google Mobile Ads SDK version 8.3.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 8.3.0.
- Maio SDK version 1.5.6.
Version 1.5.6.0
- Verified compatibility with maio SDK version 1.5.6.
- Now requires Google Mobile Ads SDK version 7.68.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 7.68.0.
- Maio SDK version 1.5.6.
Version 1.5.5.0
- Verified compatibility with maio SDK version 1.5.5.
- Now requires Google Mobile Ads SDK version 7.64.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 7.64.0.
- Maio SDK version 1.5.5.
Version 1.5.4.0
- Verified compatibility with maio SDK version 1.5.4.
- Now requires Google Mobile Ads SDK version 7.60.0 or higher.
Built and tested with:
- Google Mobile Ads SDK version 7.60.0.
- Maio SDK version 1.5.4.
Version 1.5.3.1
- To limit timeouts, ad requests will now immediately fail if maio does not have an ad ready to be shown.
- Removed support for the i386 architecture.
Built and tested with:
- Google Mobile Ads SDK version 7.58.0.
- Maio SDK version 1.5.3.
Version 1.5.3.0
- Verified compatibility with maio SDK version 1.5.3.
Built and tested with:
- Google Mobile Ads SDK version 7.55.1.
- Maio SDK version 1.5.3.
Version 1.5.2.1
- Fixed an issue where the adapter was not invoking the
-rewardedAdDidPresent:
callback.
Built and tested with:
- Google Mobile Ads SDK version 7.53.1.
- Maio SDK version 1.5.2.
Version 1.5.2.0
- Verified compatibility with maio SDK version 1.5.2.
Built and tested with:
- Google Mobile Ads SDK version 7.53.1.
- Maio SDK version 1.5.2.
Version 1.5.1.0
- Verified compatibility with maio SDK version 1.5.1.
Built and tested with:
- Google Mobile Ads SDK version 7.52.0.
- Maio SDK version 1.5.1.
Version 1.5.0.0
- Verified compatibility with maio SDK version 1.5.0.
Built and tested with
- Google Mobile Ads SDK version 7.51.0.
- Maio Ads SDK version 1.5.0.
Version 1.4.8.0
- Verified compatibility with maio SDK version 1.4.8.
Version 1.4.6.0
- Verified compatibility with maio SDK version 1.4.6.
- Updated the adapter to use the new rewarded API.
- Now requires Google Mobile Ads SDK version 7.42.2 or higher.
Version 1.4.2.0
- Verified compatibility with maio SDK version 1.4.2.
Version 1.4.1.0
- Verified compatibility with maio SDK version 1.4.1.
- Fixed an issue where maio adapter might fail if multiple MediaIds are provided from AdMob.
Version 1.4.0.0
- Verified compatibility with maio SDK version 1.4.0.
Version 1.3.2.0
- Verified compatibility with maio SDK version 1.3.2.
Version 1.3.1.1
- Added
adapterDidCompletePlayingRewardBasedVideoAd:
callback to the adapter.
Version 1.3.1.0
- Verified compatibility with maio SDK version 1.3.1.
Version 1.3.0.0
- Verified compatibility with maio SDK version 1.3.0.
Version 1.2.19.0
- Verified compatibility with maio SDK version 1.2.19.
Version 1.2.18.0
- First release!
- Added support for interstitials and rewarded videos ads.