According to the Google Adsense help forum, it wasn't anything related to the code. 

It was because I hadn't verified everything Adsense related yet (like my PIN), so that PSAs were shown. Therefore, no ads were shown.