title: High ram usage with admob
body: <p>I am trying to place ads inside my app. According to Admob <a href="https://developers.google.com/admob/android/quick-start#initialize_mobileads" rel="noreferrer">Documentation</a> I have to initialize Mobile Ads SDK</p>
  
  <pre><code>MobileAds.initialize(this, "YOUR_ADMOB_APP_ID");
  </code></pre>
  
  <p>This causes spike in high ram usage in code.</p>
  
  <p><a href="https://i.stack.imgur.com/3o915.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3o915.png" alt="enter image description here"></a></p>
  
  <p>But if i remove this line then ram usage drops &amp; and this line of code doesn't seem to have any affect on servering ads inside the app.</p>
  
  <p><a href="https://i.stack.imgur.com/Afhmf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Afhmf.png" alt="enter image description here"></a></p>
  
  <p>Also when requesting ad from admob ram usage again spike up and causes 3-4 GC events on app startup. I believe this is memory leak.</p>
  
  <blockquote>
    <p>Here's how i am requesting ad in <code>onCreate</code> method</p>
  </blockquote>
  
  <pre><code>AdRequest request = null;
          if (BuildConfig.DEBUG) {
              //Facebook Audience Network
              List&lt;String&gt; testDeviceId = new ArrayList&lt;&gt;();
              testDeviceId.add("TESTID");//Redmi Note 3
              testDeviceId.add("TESTID");//Moto G 1st Gen
  
              AdSettings.addTestDevices(testDeviceId);
  
              //Google Ad-mob
              request = new AdRequest.Builder()
                      .addTestDevice("TESTID")//Redmi Note 3
                      .addTestDevice("TESTID")//Mot G 1st Gen
                      .build();
          } else {
              request = new AdRequest.Builder()
                      .build();
          }
  
          AdView mAdView = findViewById(R.id.adView);
          mAdView.loadAd(request);
  </code></pre>
  
  <p>When loading this banner ads several GC event are kicked in. If i don't load ads GC event are never kicked in.</p>
  
  <p><a href="https://i.stack.imgur.com/twN9s.png" rel="noreferrer"><img src="https://i.stack.imgur.com/twN9s.png" alt="enter image description here"></a></p>
  
  <p>Is this behavior normal with admob? How can i resolve this?</p>