My Yorkie has done the potty in weird places, when she was younger. She is 4 yrs old. They are like kids, where ever, when ever, & how ever. I admit, I didn't let her out as much as I should have then. She is potty trained now though. I had hardwood floors so it was easy to clean then. Now I have a new house with mostly carpet and I just bought another baby whom is 14 weeks old. The trick is to let the baby out every hour. It can be hard, and yes, you will get tired of going out so much. The more the better

I am up right now at 4 am to let my new baby outside to go potty. In almost 24 hours she has had 1 accident on the carpet that was right next to a potty pad. Every other time she went potty outside!!! I am thankful!! If it is cold where you live buy a sweater for your baby so the don't get cold faster and so Dude will sniff around longer for a place to potty outside. Make sure you say good potty outside and bring pup in when you think they are done. Right now outside should be for potty only, not playtime.
Be persistent . .
Hope this helps