Putonghua (普通话) is Mandarin, our government language and on TV. Zhongwen (中文Chinese language) can be Mandarin, but broad meaning, it means all languages in China, could be Shanghainese, Cantonese, Tibet. Hanyu (汉语) means the Han nationality's language, which is mandarin come from. So you are learning Hanyu, our Han people's language, not Man people, Miao people, or other 55 minorities language.
Regards.