title: The ad size and ad unit ID must be set before loadAd when set programmatically
body: <p>I have no idea what is going on here but I am trying to set my ad unit ID dynamically through code like below and removing it from the XML but still get the error: </p>
  
  <blockquote>
    <p>The ad size and ad unit ID must be set before loadAd is called.</p>
  </blockquote>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:ads="http://schemas.android.com/apk/res-auto"
         &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"
              ads:adSize="SMART_BANNER"&gt;
          &lt;/com.google.android.gms.ads.AdView&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    AdView mAdView = (AdView) rootView.findViewById(R.id.adView);
      mAdView.setAdUnitId(getEvent().getAdMobUnitId());
      AdRequest adRequest = new AdRequest.Builder().build();
      mAdView.loadAd(adRequest);
  </code></pre>