Google Ad Mob Configuration

Estimated reading: 2 minutes 28 views

AdMob

  1. Go to Google Ad Mob to create an account
  2. Select banner add and get its app id and ad id
  3. Go to Admin Panel and paste Ad Id

Detailed Guide

For Andriod

Add the AdMob app ID, as identified in the AdMob web interface, to the app’s android/app/src/main/AndroidManifest.xml file by adding a <meta-data> tag with the name com.google.android.gms.ads.APPLICATION_ID. For android:value, insert your own AdMob app ID in quotes as shown:

//////////////////////////////////////////////////////////////////////////

<manifest>
<application>
<!– Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 –>
<meta-data
android:name=”com.google.android.gms.ads.APPLICATION_ID”
android:value=”ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy”/>
<application>
<manifest>

//////////////////////////////////////////////////////////////////////////

Grab your BannerAd ID then go to Admin Panel -> API Settings -> Push Notifications Settings

For IOS

In your app’s ios/Runner/Info.plist file, add a GADApplicationIdentifier key with a string value of your AdMob app ID, as identified in the AdMob web interface:

//////////////////////////////////////////////////////////////////////////

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-################~##########</string>

//////////////////////////////////////////////////////////////////////////

You must pass the same value when you initialize the plugin in your Dart code.
See the iOS guide for more information about configuring Info.plist and setting up your app ID.

Share this Doc

Google Ad Mob Configuration

Or copy link

CONTENTS