facebook twitter hatena line email

Monaca/admob/admob-free/mediation/nend

提供: 初心者エンジニアの簡易メモ
2020年6月17日 (水) 12:17時点におけるAdmin (トーク | 投稿記録)による版 (参考)

移動: 案内検索

nendのメディエーションを使いたい場合

androidの場合

androidでは以下をplugin.xmlに追加する

<framework src="net.nend.android:nend-sdk:5.4.2" />
<framework src="com.google.ads.mediation:nend:+" />

以下エラーが発生する場合

> 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を追加ください。

maven設定方法

plugin.xml

<platform name="android">
       <framework src="build-extras.gradle" custom="true" type="gradleReference"/>
</platform>

build-extras.gradle

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.+'
        }
    }
}

参考: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

W/NendMediationAdapter: Failed to request ad, AdSize is null.

バナーで以下エラーが出たとき

W/NendMediationAdapter: Failed to request ad, AdSize is null.

フォーマットが正しいか確認する。

AdMobしか表示されない場合

admob.setDevMode(true)を一度切ってみる

iosの場合

plugin.xmlに追加

<platform name="ios">
  <pods use-frameworks="true">
        <pod name="GoogleMobileAdsMediationNend" spec="~> 5.3.1.0" />
  </pods>
</platform>


nendのtestId

https://github.com/fan-ADN/nendSDK-ios/wiki/Verification

https://github.com/fan-ADN/nendSDK-android/wiki/Verification

参考

https://developers.google.com/admob/unity/mediation/nend

https://bintray.com/google/mobile-ads-adapters-unity/GoogleMobileAdsNendMediation#files/Google