The ad size and ad unit ID must be set before loadAd when set programmatically

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: The ad size and ad unit ID mu...