I've gotta point to Fnarf's answer, in a round about fashion. It's not really about the living situation as much as it is about the owner. I've had dogs my whole life, in living situations from a 10 acre farm to the edge of Mt Rainer National Park, to Boren and University. If you are willing to make the commitment of time and effort that a dog requires, which to do it right really is akin to taking on any other full time relationship, the living situation shouldn't matter all that much-especially with a appropriate breed choice. That is, to do right by the dog, society, and yourself, be sure you have the time to interact with the dog as it will require, in order to be both mentally and physically happy. Not to overstate the case, but having a dog that others will not hate (possibly justifiably so), is a lot of work.
If you want companionship primarily, I would strongly recommend getting a older dog from the shelter. They aren't as cute as puppies, but they typically don't shit all over the house, and I've always found shelter dogs are great. If I'm not reading to much into it, they've always seemed real grateful to get bailed out of jail.