Skip to content

imobile-maio/maio-Android-MoPubMediationAdapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 

Repository files navigation

maio Android Mopub Adapter

Get Started

Adding Maio to your MoPub Dashboard

  1. Open your MoPub dashboard, and click on the Networks tab.
  2. Click on New network.
  3. On the bottom of the modal, click on Custom SDK network.
  4. Input the Network settings as below, and click Next:
    • Network name: maio
  5. Click Next for the Default CPM preferences.
  6. Input the App & ad unit setup as below, and click Save & Close:
    • Interstitial
      • Custom Event Class
        • com.mopub.mobileads.MaioInterstitial
      • Custom Event Class Data
        {"mediaId": "YOUR-MEDIA-ID", "zoneId": "YOUR-ZONE-ID"}
    • Rewarded Video
      • Custom Event Class
        • com.mopub.mobileads.MaioRewardedVideo
      • Custom Event Class Data
        {"mediaId": "YOUR-MEDIA-ID", "zoneId": "YOUR-ZONE-ID"}

Implement maio Android SDK and MaioMopubAdapter to your Project

  1. 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>
  2. Go to the release page and download the newest MaioMoPubAdapter_v*.*.*.jar.
  3. Copy MaioMoPubAdapter_v*.*.*.jar to the libs/ folder in your app.

GDPR

Maio does not currently support GDPR so setting [PersonalInfoManager.forceGdprApplies()] will stop you from receiving maio ads.

Initialization Timeout Setting

Set the amount of time (milliseconds) to wait beforing timing out on the first call to load/loadRewardedVideo.

  private static final int initTimeout = 30000;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages