Banner BuildPackage_Android_DFP English - mkaji-geniee/Geniee-SDK-Unity-Plugin GitHub Wiki
Please follow the build procedure below.
- Library addition with gradle
- Introducing libraries in Maven
- Add library manually
- Edit AndroidManifest.xml
- Build procedure
- About Hardware Acceleration Setting
- Open
File>BuildSettings ...on the menu bar and set the following.
- Platform:
Android - Build System:
Gradle
- Make sure that the following library is created under Assets> Plugins> Android file to be used.
- AndroidManifest.xml
- mainTemplate.gradle
-
Make sure that the Android Support file to be used has the following library created under
Assets>Plugins>Android.- android.arch.core.common-1.0.0.jar
- android.arch.lifecycle.common-1.0.0.jar
- android.arch.lifecycle.runtime-1.0.0.aar
- com.android.support.customtabs-26.1.0.aar
- com.android.support.support-annotations-26.1.0.jar
- com.android.support.support-compat-26.1.0.aar
- com.android.support.support-core-ui-26.1.0.aar
- com.android.support.support-core-utils-26.1.0.aar
- com.android.support.support-fragment-26.1.0.aar
- com.android.support.support-media-compat-26.1.0.aar
- com.android.support.support-v4-26.1.0.aar
- com.google.android.gms.play-services-ads-15.0.1.aar
- com.google.android.gms.play-services-ads-base-15.0.1.aar
- com.google.android.gms.play-services-ads-identifier-15.0.1.aar
- com.google.android.gms.play-services-ads-lite-15.0.1.aar
- com.google.android.gms.play-services-basement-15.0.1.aar
- com.google.android.gms.play-services-gass-15.0.1.aar
-
Open
PlayServicesResolver>Editor>GNDependenciesand get the following to getGNAdSDK.<!-- GNAdSDK --> <androidPackage spec="jp.co.geniee.gnadsdk:GNAdSDK:4.0.0"> <androidSdkPackageIds> <androidSdkPackageId>extra-geniee-repository</androidSdkPackageId> </androidSdkPackageIds> <repositories> <repository>https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository</repository> </repositories> </androidPackage>- When implementing DFP banner mediation, the Geniee SDK must be version 3.2.1 or higher.
Please make sure that the Geniss SDK file to be used has the following library created under
Assets>Plugins>Android.- jp.co.geniee.gnadsdk.GNAdSDK-4.0.0.aar
-
Open
PlayServicesResolver>Editor>GNDependenciesand get the following to getGNAdDFPRewardMediationAdapter.<!-- GNAdDFPBannerMediationAdapter --> <androidPackage spec="jp.co.geniee.gnaddfpbannermediationadapter: GNAdDFPBannerMediationAdapter:4.0.0.0"> <androidSdkPackageIds> <androidSdkPackageId>extra-geniee-repository</androidSdkPackageId> </androidSdkPackageIds> <repositories> <repository>https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository</repository> </repositories> </androidPackage>Please make sure that the Geniee SDK file to be used has the following library created under
Assets>Plugins>Android.- jp.co.geniee.gnaddfpbannermediationadapter. GNAdDFPBannerMediationAdapter-4.0.0.0.aar
If you followed the Installing libraries with Maven procedure, you do not need to do this step.
Manual introduction procedure here
Please add SDK below Assets> Plugins> directly under Android.
- GNAdSDK-4.0.0.jar
- GNAdDFPRewardMediationAdapter-4.0.0.0.jar
Manual introduction procedure here
Edit Assets -> Plugins -> Android -> AndroidManifest.xml.
Please add the following.
<application>
<!-- Banner -->
<activity android:name="jp.co.geniee.gnadsdk.banner.GNAdWebActivity"
android:label="@string/app_name" android:screenOrientation="portrait"/>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Optional permissions. Will pass Lat/Lon values when available. Choose either Coarse or Fine -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
- Select File -> Build Settings from the menu bar.
- Select Platform's Android.
- BuildSystem: Select "Gradle".
- If you have not edited Bundle Identifier etc., press
Player Settingsand edit the necessary setting items. - You can check the package build by
Build & Run.
- Unity Preferences -> If you do not describe the paths of
SDKandJDKof External Tools, please write before you create the package.
If you want to display the banner's movie properly, hardware acceleration must be set.
<application android:hardwareAccelerated="true">
</application>
or
<activity android:hardwareAccelerated="true"/>