「Flutter/admob/admob flutter」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→準備) |
|||
| 行12: | 行12: | ||
android:name="com.google.android.gms.ads.APPLICATION_ID" | android:name="com.google.android.gms.ads.APPLICATION_ID" | ||
android:value="ca-app-pub-~~~~~~"/> | android:value="ca-app-pub-~~~~~~"/> | ||
| + | </pre> | ||
| + | |||
| + | ios/Runner/Info.Plist | ||
| + | <pre> | ||
| + | <key>GADApplicationIdentifier</key> | ||
| + | <string>ca-app-pub-~~~~~</string> | ||
| + | <key>io.flutter.embedded_views_preview</key> | ||
| + | <true/> | ||
</pre> | </pre> | ||
2019年12月12日 (木) 19:18時点における版
インストール
pubspec.yaml
dependencies: admob_flutter: ^0.3.4
準備
AndroidManifest.xml
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-~~~~~~"/>
ios/Runner/Info.Plist
<key>GADApplicationIdentifier</key> <string>ca-app-pub-~~~~~</string> <key>io.flutter.embedded_views_preview</key> <true/>
