Android 全画面インタースティシャル 全アドネットワークの一括実装
全画面インタースティシャル広告のメディエーション設定をするための、全アドネットワーク一括実装手順を記載します。 スタートアップガイドや全画面インタースティシャル広告の実装については、以下の実装手順を参照して下さい。
実装手順:
- Mavenでライブラリを導入する
- 手動でライブラリを導入する
- マニフェストファイルの記述
Mavenでライブラリを導入する(推奨)
- Geniee Adapter SDK のダウンロード - 以下の URL から Geniee Android SDK をダウンロードします。 Geniee-Android-SDK
- 必要なFullscreenInterstitial-Adnws-Android-SDKについては、営業担当者にご確認ください。
- libsフォルダーが存在しない場合、必要に応じて作成します。
- libsフォルダ- FullscreenInterstitial-Adnws-Android-SDKの以下ファイルをコピーします。- imobileSdkAds.2.0.20.jar
 
 
- Project>build.gradleの- allprojects>repositoriesに以下を追加します。
   allprojects {
   	repositories {
   		jcenter()        	
   		// GenieeSDK
   		maven { 
   		    url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
   		}
   		// nendSDK
   		maven {
   		    url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
   		}
   		// Maio SDK
   		maven{
   		    url "https://imobile-maio.github.io/maven"
   		}
   		//Zucks SDK
   		maven {
   		    url 'https://github.com/zucks/ZucksAdNetworkSDK-Maven/raw/master/'
   		}
   		// Tapjoy SDK
   		maven {
   			url "https://tapjoy.bintray.com/maven"
   		}
   	}
   }
   
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- Module>build.gradleの- dependenciesに以下を追加します。
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    // Geniee
    implementation 'jp.co.geniee.gnsfullscreeninterstitialadapter:GNSFullscreenInterstitialAdapter:4.3.0'
    // Nend
    implementation 'com.android.support:cardview-v7:26.1.0'
    // Vungle Optional Google Play Services
    implementation 'com.google.android.gms:play-services-location:15.0.1'
}
- 実装例
- Project>build.gradle
   allprojects {
   	repositories {
   		google()
   		jcenter()
   		
   		// GenieeSDK
   		maven { 
   		    url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
   		}
   		// nendSDK
   		maven {
   		    url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
   		}
   		// Maio SDK
   		maven{
   		    url "https://imobile-maio.github.io/maven"
   		}
   		//Zucks SDK
   		maven {
   		    url 'https://github.com/zucks/ZucksAdNetworkSDK-Maven/raw/master/'
   		}
   		// Tapjoy SDK
   		maven {
   			url "https://tapjoy.bintray.com/maven"
   		}
   	}
   }
   
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- Module>build.gradle
dependencies {	
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    // Google SDK
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.1'
    implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
    // Geniee
    implementation 'jp.co.geniee.gnadsdk:GNAdSDK:8.5.1' // GenieeSDK
    implementation 'jp.co.geniee.gnsfullscreeninterstitialadapter:GNSFullscreenInterstitialAdapter:4.3.0'
    // Nend
    implementation 'com.android.support:cardview-v7:26.1.0'
    // Vungle Optional Google Play Services
    implementation 'com.google.android.gms:play-services-location:15.0.1'
}
手動でライブラリを導入する
Mavenでライブラリを導入するの手順を実行した場合、この手順は実行する必要はありません。
手動導入手順はこちら
Geniee Adapter SDK のダウンロード
以下の URL から Geniee Android SDK をダウンロードします。
手動でライブラリを導入するで必要なFullscreenInterstitial-Adnws-Android-SDKについては、営業担当者にご確認ください。
Localライブラリの配置
- Geniee Android SDK を解凍します。 
- プロジェクトにGNSFullscreenInterstitialAdapterを追加します。 
- libsフォルダーが存在しない場合、必要に応じて作成します。
- libsフォルダに- GNSFullscreenInterstitialAdapterフォルダ配下の以下ファイルをコピーします。- - GNSFullscreenInterstitialAdapter-AppLovin-4.3.0.jar - GNSFullscreenInterstitialAdapter-Maio-4.3.0.jar - GNSFullscreenInterstitialAdapter-Nend-4.3.0.jar - GNSFullscreenInterstitialAdapter-Zucks-4.3.0.jar - GNSFullscreenInterstitialAdapter-Vungle-4.3.0.jar - GNSFullscreenInterstitialAdapter-UnityAds-4.3.0.jar - GNSFullscreenInterstitialAdapter-Tapjoy-4.3.0.jar - GNSFullscreenInterstitialAdapter-Imobile-4.3.0.jar
- libsフォルダに- FullscreenInterstitial-Adnws-Android-SDKフォルダ配下の以下ファイルをコピーします。- - applovin-sdk-9.14.5.aar - maio-1.1.13.aar - nend-sdk-5.4.2.aar - ZucksAdNetworkSDK-4.7.0.jar - tapjoyconnectlibrary-12.7.0.jar - unity-ads-3.4.8.aar - VNG-moat-mobile-app-kit-2.6.3.jar - gson-2.8.6.jar - okhttp-3.12.12.jar - okio-1.15.0.jar - vungle-android-sdk-6.8.0.jar - imobileSdkAds-2.0.20.jar
- Project/build.gradleの- allprojects> repositoriesに追加します。- allprojects { repositories { flatDir { dirs 'libs' } } }1
 2
 3
 4
 5
 6
 7
- Module/build.gradleの- androidと- dependenciesに追加します。- android { sourceSets { main { jniLibs.srcDirs = ['libs'] } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.3' // Maio AAR integration implementation(name: 'maio-1.1.13', ext: 'aar') // Nend implementation(name:'nend-sdk-5.4.2', ext:'aar') implementation 'com.android.support:cardview-v7:26.1.0' // Vungle Optional Google Play Services implementation 'com.google.android.gms:play-services-location:15.0.1' }
マニフェストファイルの記述
マニフェストファイル AndroidManifest.xml に必要情報を記述します。
- AppLovinのキー入力 - AppLovinを使用する場合、 - YOUR_APPLOVIN_SDK_KEY_HEREに指定されているキーを入力して下さい。- <meta-data android:name="applovin.sdk.key" android:value="YOUR_APPLOVIN_SDK_KEY_HERE" />1
 2
 3
 4
- Applovin keyは営業担当者に確認してください。
 
- Mavenでライブラリを導入するの手順を実行した場合、この手順は実行する必要はありません。- 手動導入手順はこちら- マニフェストファイルの - <application>にSDKが使用するアクティビティの情報を記述します。- <!-- AppLovin --> <activity android:name="com.applovin.adview.AppLovinInterstitialActivity" android:configChanges="orientation|screenSize"/> <activity android:name="com.applovin.adview.AppLovinConfirmationActivity" android:configChanges="orientation|screenSize"/> <meta-data android:name="applovin.sdk.key" android:value="YOUR_APPLOVIN_SDK_KEY_HERE" /> <!-- Tapjoy --> <activity android:name="com.tapjoy.TJAdUnitActivity" android:configChanges="orientation|keyboardHidden|screenSize" android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" /> <activity android:name="com.tapjoy.TJContentActivity" android:configChanges="orientation|keyboardHidden|screenSize" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:hardwareAccelerated="true" /> <!--Vungle Activities--> <activity android:name="com.vungle.warren.ui.VungleActivity" android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize" android:launchMode="singleTop" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /> <activity android:name="com.vungle.warren.ui.VungleFlexViewActivity" android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize" android:hardwareAccelerated="true" android:launchMode="singleTop" android:theme="@android:style/Theme.Translucent.NoTitleBar" /> <!--Vungle Required Permissions--> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!--Optional Permissions--> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 
