Definetely recommend the apartament.
It is a bit far away to go walking to the most important Barcelona famous points, but there is a metro station just around the corner.
Just book it and enjoy your Barcelona stay!