facebook twitter hatena line email

Flutter/admob/firebase admob

提供: 初心者エンジニアの簡易メモ
2019年12月16日 (月) 11:09時点におけるAdmin (トーク | 投稿記録)による版

移動: 案内検索

インストール

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を入れる。