Integrating maio with Mediation

This guide is intended for publishers who want to use the Google Mobile Ads SDK to load and display ads from maio via mediation. 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," and so on.

Supported formats and features

The Ad Manager mediation adapter for maio has the following capabilities:

Formats
Banners
Interstitials
Rewarded video
Rewarded Video (new APIs)
Native Ads - Custom Rendering
Features
Smart banners
Automatic Data Collection

Requirements

  • Android API level 16 or higher

  • maio SDK 1.0.7 or higher

  • 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 Android 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 Android 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.

In addition to Media ID and Zone ID, you will need API ID and API KEY to set up your Android 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 Ad Manager ad unit

Sign in to your Ad Manager account. 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 ID to which you want to add mediation.

Next, click the Add yield partner button.

If you already have a Yield partner for maio, you can simply select it. Otherwise, select Create a new yield partner.

Select maio as the Ad network and enter a unique Name. Enable Mediation and turn on Automatic data collection, and enter the API ID and API KEY obtained from previous section. You don't need to enter a Username and Password. Click Save when done.

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 the Zone ID obtained in the previous section and a Default CPM value.

Click Save at the bottom of the page when 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 Override reward settings from third-party ad networks when using mediation 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

Add the following maio Maven repository and implementation dependency with the latest version of the maio SDK in the app-level build.gradle file:

repositories {
    maven{
        url "https://imobile-maio.github.io/maven"
    }
}

...
dependencies {
   implementation 'com.google.android.gms:play-services-ads:19.1.0'
   implementation 'com.google.ads.mediation:maio:1.1.11.1'
}
...

Manual integration

  • Download the latest version of maio Android SDK and add it to your project.
  • Download the latest .aar file of the adapter from Bintray and add it to your project.

Step 4: Additional code required

No additional code is required for maio Android integration.

Step 5: Test your implementation

Publishers using version 11.6.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.

maio Android Mediation Adapter Changelog

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.