- Open your MoPub dashboard, and click on the
Networks
tab. - Click on
New network
. - On the bottom of the modal, click on
Custom SDK network
. - Input the
Network settings
as below, and clickNext
:Network name
:maio
- Click
Next
for theDefault CPM preferences
. - Input the
App & ad unit setup
as below, and clickSave & Close
:- Interstitial
- Custom Event Class
com.mopub.mobileads.MaioInterstitial
- Custom Event Class Data
{"mediaId": "YOUR-MEDIA-ID", "zoneId": "YOUR-ZONE-ID"}
- Custom Event Class
- Rewarded Video
- Custom Event Class
com.mopub.mobileads.MaioRewardedVideo
- Custom Event Class Data
{"mediaId": "YOUR-MEDIA-ID", "zoneId": "YOUR-ZONE-ID"}
- Custom Event Class
- Interstitial
- Install
maio Android SDK
to your project.- Add the following code to your project's
build.gradle
allprojects { repositories { maven{ url "https://imobile-maio.github.io/maven" } } }
- Add the following code to your app's
build.gradle
dependencies { implementation 'com.google.android.gms:play-services-ads:+' implementation 'com.maio:android-sdk:1.1.12' }
- Add the following code to
AndroidManifest.xml
<activity android:name="jp.maio.sdk.android.AdFullscreenActivity" android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize" android:hardwareAccelerated="true" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > </activity> <activity android:name="jp.maio.sdk.android.HtmlBasedAdActivity" android:configChanges="keyboardHidden|orientation|screenSize|screenLayout" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > </activity>
- Add the following code to your project's
- Go to the release page and download the newest
MaioMoPubAdapter_v*.*.*.jar
. - Copy
MaioMoPubAdapter_v*.*.*.jar
to thelibs/
folder in your app.
Maio does not currently support GDPR so setting [PersonalInfoManager.forceGdprApplies()]
will stop you from receiving maio ads.
Set the amount of time (milliseconds) to wait beforing timing out on the first call to load/loadRewardedVideo.
private static final int initTimeout = 30000;