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:
You've got
android:layout_width="wrap_content"
android:layout_height="wrap_content"
From: https://developers.google.com/admob/android/banner#smart_banners
Note: The smart banner view in your layout must consume the full width of the device. If it doesn't, you'll get a warning with the message "Not enough space to show ad", and the banner will not be displayed.
change it to
android:layout_width="match_parent"
And set your adUnitID in the xml file.
ads:adUnitId="AD_UNIT_ID"