facebook twitter hatena line email

「Cordova/admob」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(=iosの場合)
(=androidの場合)
行7: 行7:
 
  cd examples/basic
 
  cd examples/basic
  
===androidの場合==
+
===androidの場合===
 
  cordova platform add android
 
  cordova platform add android
 
  cordova requirements android
 
  cordova requirements android

2020年5月28日 (木) 20:15時点における版

ダウンロード

https://github.com/admob-plus/admob-plus

zipを落としてきて、unzipして適当なdirに置く。

admobのサンプルをビルド

cd examples/basic

androidの場合

cordova platform add android
cordova requirements android
cordova build android
cordova run android

テストフラグ付きで、リワード&インステ静止画&フッターバナーが起動する

iosの場合

ca-app-pub-が書かれてる場所一覧

AppIdや広告Idが違うなどと出たら、確認する。

.//platforms/ios/AdmobBasicExample/Plugins/cordova-admob-plus/AMSPlugin.swift
.//platforms/ios/AdmobBasicExample/AdmobBasicExample-Info.plist
.//platforms/ios/www/plugins/cordova-admob-plus/www/admob.js
.//platforms/ios/ios.json
.//platforms/ios/platform_www/plugins/cordova-admob-plus/www/admob.js
.//platforms/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.framework/GoogleMobileAds
.//platforms/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.framework/Headers/GADRewardedAd.h
.//platforms/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.framework/Headers/GADInterstitial.h
.//platforms/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.framework/Headers/GADNativeExpressAdView.h
.//platforms/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.framework/Headers/GADBannerView.h
grep: .//platforms/ios/build/device/AdmobBasicExample.app: No such file or directory
.//platforms/ios/AdmobBasicExample.xcarchive/Products/Applications/AdmobBasicExample.app/AdmobBasicExample
.//platforms/ios/AdmobBasicExample.xcarchive/Products/Applications/AdmobBasicExample.app/www/plugins/cordova-admob-plus/www/admob.js
.//platforms/ios/AdmobBasicExample.xcarchive/Products/Applications/AdmobBasicExample.app/Info.plist
.//platforms/android/app/build/intermediates/bundle_manifest/debug/processDebugManifest/bundle-manifest/AndroidManifest.xml
.//platforms/android/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml
.//platforms/android/app/build/intermediates/instant_app_manifest/debug/processDebugManifest/instant-app-manifest/AndroidManifest.xml
.//platforms/android/app/build/intermediates/merged_assets/debug/mergeDebugAssets/out/www/plugins/cordova-admob-plus/www/admob.js
.//platforms/android/app/build/intermediates/transforms/dexMerger/debug/0/classes.dex
.//platforms/android/app/build/intermediates/transforms/externalLibsDexMerger/debug/0/classes.dex
.//platforms/android/app/build/intermediates/transforms/dexBuilder/debug/41/admob/plugin/AdMob.dex
.//platforms/android/app/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/admob/plugin/AdMob.class
.//platforms/android/app/src/main/AndroidManifest.xml
.//platforms/android/app/src/main/java/admob/plugin/AdMob.java
.//platforms/android/app/src/main/assets/www/plugins/cordova-admob-plus/www/admob.js
.//platforms/android/android.json
.//platforms/android/platform_www/plugins/cordova-admob-plus/www/admob.js
.//plugins/cordova-admob-plus/www/admob.js
.//plugins/cordova-admob-plus/www/base.d.ts
.//plugins/cordova-admob-plus/ts/base.ts
.//plugins/cordova-admob-plus/src/ios/AMSPlugin.swift
.//plugins/cordova-admob-plus/src/android/AdMob.java
.//plugins/android.json
.//plugins/fetch.json
.//plugins/ios.json
.//node_modules/cordova-admob-plus/www/admob.js
.//node_modules/cordova-admob-plus/www/base.d.ts
.//node_modules/cordova-admob-plus/ts/base.ts
.//node_modules/cordova-admob-plus/src/ios/AMSPlugin.swift
.//node_modules/cordova-admob-plus/src/android/AdMob.java
.//config.xml
.//package.json