From neither location you can walk to the city center in a reasonable time.
But both locations are right at a subway station: Courtyard Marriott U2, Renaissance U4.
You need to get acquainted with the public transport system in Vienna anyway, and you will see that you can get around easily.
I recommend buying the recently introduced flexible 7-days-pass, which allows you to select the first day of validity (as opposed to the regular calendar week pass). This pass is available by online booking, only. Because it is strictly personal, you must create an account during the booking process. Best is to do it at home in advance if you have a printer.
https://shop.wienmobil.at/products/T7T31_VIE
Scroll down to the very bottom first to change the language to English.
You may install the WienMobil app on your smartphone and do everything with that, but I have no deeper experiece using that.