I don't think it matters one bit where or how you live, it's all about if you can provide what is best for the dog.

I don't care if you have a Chihuahua in a mansion or a Great Dane in a studio apartment (well the GD would have to be able to move around so a big studio would be needed, but you get my drift). Can you provide them with the attention & exercise they need? Can you afford the food & vet bills? Etc...

In your case, as long as you can exersice the dog properly he/she should be fine with where you live.