I'm a fairly new parent to a yorkie. But I'm guessing that the same principles apply.
My 4 month old puppy was going everywhere - and without warning or even a sniff! What has helped was getting an ex pen and confining him with a potty pad. I've been giving him more and more space with the pen every week, and when he does come out to play--he's been running to his pad to go potty. So i am very happy