title: Getting 'Invalid Application ID' error when trying to implement AdMob in Android Application
body: <p>I have been following google admob vidoes for 3 days, but I'm getting a run time error in the logCat : </p>
  
  <blockquote>
    <p><strong>Logcat</strong></p>
    
    <p>Process: com.exafmpflle.android.happybirthdayyyy, PID: 19319
       java.lang.RuntimeException: Unable to get provider 
       com.google.android.gms.ads.MobileAdsInitProvider:
       java.lang.IllegalStateException: 
         Invalid application ID. Follow instructions here: to *
            * find your app ID.</p>
  </blockquote>
  
  <p><strong>activitymain</strong></p>
  
  <pre><code>xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/drawerLayout"
  android:background="@drawable/january_main"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.exafmpflle.android.xxxxxxx.MainActivity"&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;ImageButton
          android:id="@+id/idbuttonfirst"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentStart="true"
          android:layout_alignTop="@+id/idbuttonsecond"
          android:layout_marginStart="79dp"
          android:background="@drawable/ic_iconaphoto"
          android:src="?attr/selectableItemBackground" /&gt;
  
      &lt;com.google.android.gms.ads.AdView
          android:id="@+id/adView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_alignParentBottom="true"
          app:adSize="BANNER"
          app:adUnitId="ca-app-pub-52924220005747xx/xxxxxxxx"  /&gt;
  
  
  &lt;/RelativeLayout&gt;
  &lt;android.support.design.widget.NavigationView
      android:layout_gravity="start"
      android:id="@+id/nav_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:menu="@menu/navigation_menu" /&gt;
  </code></pre>
  
  <p> </p>
  
  <p><strong>AndroidMainfest</strong><br>
  <a href="https://i.stack.imgur.com/gpWSl.jpg" rel="nofollow noreferrer">allso is in my Mainfest</a></p>
  
  <pre><code>&lt;manifest 
  xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.exafmpflle.android.xxxxxxx"
  android:installLocation="auto"&gt;
  
  &lt;!-- Include required 2 permissions for Google Mobile Ads to run--&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
  &lt;uses-feature android:name="android.permission.CALL_PHONE" 
  android:required="false" /&gt;
  &lt;uses-feature android:name="android.permission.READ_PHONE_STATE" 
  android:required="false" /&gt;
  
  &lt;supports-screens
      android:anyDensity="true"
      android:largeScreens="true"
      android:normalScreens="true"
      android:resizeable="true"
      android:smallScreens="true"
      android:xlargeScreens="true" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:hardwareAccelerated="false"
      android:installLocation="auto"
      android:icon="@mipmap/ic_launcher_birthdaycake"
      android:label="@string/app_name"
      android:largeHeap="true"
      android:supportsRtl="true"
      android:theme="@style/AppTheme" &gt;
  
      &lt;!--This meta-data tag is required to use Google Play Services.--&gt;
      &lt;meta-data
          android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
  
      &lt;!-- Sample AdMob App ID: ca-app-pub-5292422000574799~xxxxxxxx --&gt;
      &lt;meta-data
          android:name="com.google.android.gms.ads.APPLICATION_ID"
          android:value="[ca-app-pub-5292422000574799~xxxxxxxxxx"/&gt;
  
      &lt;activity
          android:name=".SplashActivity"
          android:screenOrientation="portrait"
          android:theme="@style/SplashTheme" &gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;!--Include the AdActivity configChanges and theme. --&gt;
      &lt;activity
          android:name="com.google.android.gms.ads.AdActivity"
          android:theme="@android:style/Theme.Translucent" /&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:screenOrientation="portrait"
          android:noHistory="false"/&gt;
  
      &lt;activity
          android:label="@string/about"
          android:name=".About"
          android:screenOrientation="portrait"
          android:noHistory="false" /&gt;
  
      &lt;meta-data
          android:name="android.support.PARENT_ACTIVITY"
          android:value=".MainActivity" /&gt;
  
      &lt;!-- [START firebase_service] --&gt;
  
      &lt;service
          android:name=".FirebaseMessagingService" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
      &lt;meta-data
  
      android:name="com.google.firebase.messaging.default_notification_color"
          android:resource="@color/colorPrimary" /&gt;
  
     &lt;!-- FirebaseMessagingService performs security checks at runtime,
           no need for explicit permissions despite exported="true" --&gt;
      &lt;service
  
      android:name="com.google.firebase.messaging.FirebaseMessagingService"
          android:exported="true" &gt;
          &lt;intent-filter
              android:priority="-500" &gt;
              &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
      &lt;receiver
          android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
          android:enabled="true"
          android:exported="false" &gt;
      &lt;/receiver&gt;
      &lt;receiver
          android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
          android:enabled="true"
          android:exported="true"
          android:permission="android.permission.INSTALL_PACKAGES" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;service
          android:name="com.google.android.gms.measurement.AppMeasurementService"
          android:enabled="true"
          android:exported="false" /&gt;
      &lt;service
      android:name="com.google.android.gms.measurement.AppMeasurementJobService"  
          android:enabled="true"
          android:exported="false"
          android:permission="android.permission.BIND_JOB_SERVICE" /&gt;
  
      &lt;receiver
          android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
          android:exported="true"
          android:permission="com.google.android.c2dm.permission.SEND" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
  
              &lt;category android:name="com.exafmpflle.android.happybirthdayyyy" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;!-- FirebaseInstanceIdService performs security checks at runtime,
           no need for explicit permissions despite exported="true" --&gt;
      &lt;service
          android:name="com.google.firebase.iid.FirebaseInstanceIdService"
          android:exported="true" &gt;
          &lt;intent-filter android:priority="-500" &gt;
              &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
      &lt;provider
          android:name="com.google.firebase.provider.FirebaseInitProvider"
          android:authorities="com.exafmpflle.xxxxxx.xxxxxxxxx.firebaseinitprovider"
          android:exported="false"
          android:initOrder="100" /&gt;
  
  
  &lt;/application&gt;
  </code></pre>
  
  <p>  </p>