maio Android SDK

  • SDK Version: 1.1.5
    • AndroidManifest.xmlにHtmlBasedAdActivityを追加してください。
    • Please Add HtmlBasedAdActivity to AndroidManifest.xml.
  • Released: 2018/10/12
  • 対応 Android Version: 4.1 以降
  • Supported Formats: Rewarded/Interstitial

Quickstart

maio SDKの取得・Getting maio SDK

  • maioを導入したいプロジェクトのbuild.gradleに、以下のmavenリポジトリを追加します。
  • Add maio Maven repository to your Project build.gradle:
allprojects {
    repositories {        
        maven{
            url "https://imobile-maio.github.io/maven"
        }
    }
}
  • maioSDKとGoogle Play Servicesをモジュールのbuild.gradleに追加します:
  • Add the maio SDK and Google Play Services to your project by adding the following implementations inside your Module build.grade:

jar

dependencies {
  implementation 'com.google.android.gms:play-services-ads:+'
  implementation 'com.maio:android-sdk:1.1.5'
}

aar

dependencies {
  implementation 'com.google.android.gms:play-services-ads:+'
  implementation 'com.maio:android-sdk:1.1.5@aar'
}

maio SDK Manifest Settings

  • マニフェストへ以下の要素を追加します(maio Android SDK 1.1.4以下):
  • Add the following element to your manifest(for maio Android SDK 1.1.4 and below):
<uses-library android:name="org.apache.http.legacy" android:required="false" />
  • maioアクティビティをマニフェストに追加します (aarの場合に必要ありません):
  • Add the maio activity to your manifest (not needed when using aar):
<activity  
          android:name="jp.maio.sdk.android.AdFullscreenActivity"  
          android:configChanges="orientation|screenLayout|screenSize"  
          android:hardwareAccelerated="true"  
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >  
</activity>
<activity            
          android:name="jp.maio.sdk.android.HtmlBasedAdActivity"            
          android:configChanges="keyboardHidden|orientation|screenSize"            
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity>

maio SDKの準備・maio SDK setup

private final String MEDIA_EID = "DemoPublisherMediaForAndroid";
protected void onCreate(Bundle savedInstanceState) {
 
   //初期化
   MaioAds.init(this, MEDIA_EID, new MaioAdsListener() {      
      @Override
      public void onFinishedAd(int playtime, boolean skipped, int duration, String zoneEid) {
      }
      @Override
      public void onClosedAd(String zoneEid) {          
      }
   });
}

maioの表示・Show maio Ads

//再生
if(MaioAds.canShow()){
  MaioAds.show();
}

maio SDKの全ての機能や詳細については、API Referenceを参照して下さい。

For more detailed samples and details on all of maio SDKs functions check out the API reference

Manual Download

releases から最新のリリースバージョンをダウンロードして下さい。

Get Started

Android Studio (日本語) https://github.com/imobile-maio/maio-Android-SDK/wiki/Project-Setup---Android-Studio

Android Studio (English) https://github.com/imobile-maio/maio-Android-SDK/wiki/Project-Setup-Android-Studio-(EN)

Eclipse https://github.com/imobile-maio/maio-Android-SDK/wiki/Project-Setup---Eclipse

API Reference

日本語 https://github.com/imobile-maio/maio-Android-SDK/wiki/API-Reference

English https://github.com/imobile-maio/maio-Android-SDK/wiki/API-Reference-(EN)

FAQ

日本語 https://github.com/imobile-maio/maio-Android-SDK/wiki/FAQ

English https://github.com/imobile-maio/maio-Android-SDK/wiki/FAQ-(EN)

What is maio?

maio はこれまでのバナー広告に加え、新たな広告収益の機会を得ることが可能な動画広告プラットフォームです。
バナー広告と違い、デベロッパーの設定したタイミングで、動画広告をコンテンツの一部として配信することができます。

また、動画広告再生後にアプリ内通貨やライフ等の報酬(リワード)をユーザーに還元する事で、動画広告の再生数が増加し、収益の最大化が見込めます。
今までユーザーが離脱していたポイントに 動画広告 + リワード を入れる事で、ユーザーのストレスを解消しアクティブ率を向上させる事も可能です。

Contact Us