「Flutter/admob/firebase admob」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==インストール== pubspec.yaml <pre> dependencies: firebase_admob: 0.9.0 </pre>」) |
|||
| 行5: | 行5: | ||
firebase_admob: 0.9.0 | firebase_admob: 0.9.0 | ||
</pre> | </pre> | ||
| + | |||
| + | ==準備== | ||
| + | android/app/AndroidManifest.xml | ||
| + | <pre> | ||
| + | <meta-data | ||
| + | android:name="com.google.android.gms.ads.APPLICATION_ID" | ||
| + | android:value="ca-app-pub-xxxxxxx-appid"/> | ||
| + | </pre> | ||
| + | |||
| + | ios/Runner/Info.Plist | ||
| + | <pre> | ||
| + | <key>GADApplicationIdentifier</key> | ||
| + | <string>ca-app-pub-xxxxxxx-appid</string> | ||
| + | <key>io.flutter.embedded_views_preview</key> | ||
| + | <true/> | ||
| + | </pre> | ||
| + | appIdを入れる。 | ||
2019年12月16日 (月) 11:09時点における版
インストール
pubspec.yaml
dependencies: firebase_admob: 0.9.0
準備
android/app/AndroidManifest.xml
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxx-appid"/>
ios/Runner/Info.Plist
<key>GADApplicationIdentifier</key> <string>ca-app-pub-xxxxxxx-appid</string> <key>io.flutter.embedded_views_preview</key> <true/>
appIdを入れる。
