Admob test before publishing

The addTestDevice() part is to see a fake ad during testing which doesn’t contact the admob server. Without this and with a valid admob unit ID it should just work. Are you sure you have copied the unit ID properly? And did you associate the app name with your admob ID on the admob site?