「Monaca/admob/admob-free/mediation/nend」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→iosの場合) |
|||
| 行73: | 行73: | ||
</platform> | </platform> | ||
</pre> | </pre> | ||
| + | 表示はできてない・・ | ||
==nendのtestId== | ==nendのtestId== | ||
2020年6月17日 (水) 21:11時点における版
目次
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"
}
jcenter()
maven {
url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
}
}
}
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:26.+'
}
}
}
参考: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.4.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
