|
|
(同じ利用者による、間の20版が非表示) |
行1: |
行1: |
− | ==admob-mediationとは==
| + | [[Monaca/admob/admob-free/mediation/基本]] |
− | admob-freeを使ってadmob-mediationを使う | + | |
| | | |
− | このプラグインはUnityとFacebookをサポートしてる。
| + | [[Monaca/admob/admob-free/mediation/nend]] |
| | | |
− | ==インストール方法==
| + | [[Monaca/admob/admob-free/mediation/facebook]] |
− | $ cordova plugin add cordova-plugin-admob-mediation
| + | |
| | | |
− | 公式:https://developer.aliyun.com/mirror/npm/package/cordova-plugin-admob-mediation
| + | [[Monaca/admob/admob-free/mediation/maio]] |
| | | |
− | ==インストール確認==
| + | [[Monaca/admob/admob-free/mediation/unityads]] |
− | /project/plugins/cordova-plugin-admob-mediation
| + | |
− | の下に以下ファイルが有ることを確認
| + | |
− | *CHANGELOG.md
| + | |
− | *LICENSE
| + | |
− | *README.md
| + | |
− | *package.json
| + | |
− | *plugin.xml
| + | |
| | | |
− | plugin.xml
| + | [[Monaca/admob/admob-free/mediation/adcolony]] |
− | <pre>
| + | |
− | <?xml version="1.0" encoding="UTF-8"?>
| + | |
− | <plugin id="cordova-plugin-admob-mediation" version="2.0.0"
| + | |
− | xmlns="http://apache.org/cordova/ns/plugins/1.0"
| + | |
− | xmlns:android="http://schemas.android.com/apk/res/android">
| + | |
− | <name>cordova-plugin-admob-mediation</name>
| + | |
− | <description>Cordova AdMob Mediation Plugin for different networks like Unity Ads</description>
| + | |
− | <engines>
| + | |
− | <engine name="cordova" version=">=9.0.0" />
| + | |
− | <engine name="cordova-android" version=">=8.0.0" />
| + | |
− | <engine name="cordova-ios" version=">=5.0.0" />
| + | |
− | </engines>
| + | |
− | <platform name="android">
| + | |
− | <framework src="com.unity3d.ads:unity-ads:+" />
| + | |
− | <framework src="com.google.ads.mediation:unity:+" />
| + | |
− | <framework src="com.facebook.android:audience-network-sdk:+" />
| + | |
− | <framework src="com.google.ads.mediation:facebook:+" />
| + | |
− | <!-- Prevents compilation error: https://developer.android.com/studio/build/multidex.html -->
| + | |
− | <!-- when add additional mediation plugins -->
| + | |
− | <dependency id="cordova-plugin-enable-multidex" />
| + | |
− | </platform>
| + | |
− | <platform name="ios">
| + | |
− | <pods use-frameworks="true">
| + | |
− | <pod name="GoogleMobileAdsMediationUnity" spec="~> 3.1"/>
| + | |
− | <pod name="GoogleMobileAdsMediationFacebook" spec="~> 5.4" />
| + | |
− | </pods>
| + | |
− | </platform>
| + | |
− | </plugin>
| + | |
− | </pre>
| + | |
| | | |
| + | [[Monaca/admob/admob-free/mediation/tapjoy]] |
| | | |
− | ==play-services-basementが解決できないエラーが出るとき==
| + | [[Monaca/admob/admob-free/mediation/applovin]] |
− | Androidビルド時に以下エラーが出るとき
| + | |
− | Could not resolve com.google.android.gms:play-services-basement:11.0.4.
| + | |
− | plugin.xmlの<platform name="android">の中に以下を追加
| + | |
− | <platform name="android">
| + | |
− | <framework src="com.google.android.gms:play-services-basement:11.0.4" />
| + | |
− | </platform>
| + | |
| | | |
− | ==nendのメディエーションを使いたい場合==
| + | [[Monaca/admob/admob-free/mediation/他]] |
− | androidでは以下をplugin.xmlに追加?
| + | |
− | <pre>
| + | |
− | <framework src="net.nend.android:nend-sdk:5.4.2" />
| + | |
− | <framework src="com.google.ads.mediation:nend:+" />
| + | |
− | </pre>
| + | |
− | | + | |
− | ===以下エラーが発生する場合===
| + | |
− | > Could not find any matches for net.nend.android:nend-sdk:+ as no versions of net.nend.android:nend-sdk are available.
| + | |
− | Required by:
| + | |
− | project :app
| + | |
− | > Could not find net.nend.android:nend-sdk:5.4.2.
| + | |
− | Required by:
| + | |
− | project :app > com.google.ads.mediation:nend:5.4.2.0
| + | |
− | | + | |
− | ===maven設定方法===
| + | |
− | plugin.xml
| + | |
− | <platform name="android">
| + | |
− | <framework src="build-extras.gradle" custom="true" type="gradleReference"/>
| + | |
− | </platform>
| + | |
− | | + | |
− | build-extras.gradle
| + | |
− | <pre>
| + | |
− | ext.postBuildExtras = {
| + | |
− | allprojects {
| + | |
− | repositories {
| + | |
− | maven {
| + | |
− | url "https://maven.google.com"
| + | |
− | }
| + | |
− | maven {
| + | |
− | url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
| + | |
− | }
| + | |
− | jcenter()
| + | |
− | }
| + | |
− | }
| + | |
− | android {
| + | |
− | compileOptions {
| + | |
− | sourceCompatibility JavaVersion.VERSION_1_8
| + | |
− | targetCompatibility JavaVersion.VERSION_1_8
| + | |
− | }
| + | |
− | }
| + | |
− | configurations.all {
| + | |
− | resolutionStrategy {
| + | |
− | force 'com.android.support:support-v4:26.+'
| + | |
− | }
| + | |
− | }
| + | |
− | }
| + | |
− | </pre>
| + | |
− | 参考:https://github.com/fan-ADN/nendSDK-Android/wiki/SDK%E3%81%AE%E7%B5%84%E3%81%BF%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95
| + | |
− | | + | |
− | 参考:https://developers.google.com/admob/android/mediation/nend
| + | |
− | | + | |
− | 参考:https://qiita.com/keeey/items/3a85d0673485d3e8d669
| + | |