1. Take him outside (and stay till he's done or a long time has gone by with no results):
As soon as he wakes up in the morning
• Right after his breakfast
• Right after his lunch
• Right after his naps
• Right after taking him out of his crate
• Right after his dinner
• Right after any snacks of much size
• Right before his bedtime
2. Only feed him and give him water when you can take him outside right away.
COMPLETELY clean up any potty accidents in the house. The smell of urine in the carpet will encourage her to go there again, so you must remove the smell entirely. And remember that a dog's sense of smell is about a hundred times better than yours... so if you think running a damp towel over it is going to do the trick, you are sadly mistaken. Three little words for you: Carpet Cleaning Machine. Get one!
3.At night, place the dog in a tightly enclosed area with room enough only for a pillow or dog bed.A dog will not pee or poop in their own bed if they can possibly hold it. Take advantage of this and limit their night-time sleep area so that there is nowhere to go without soiling their own bed. The easiest way to do this is to place the dog in a small kennel or animal carrier.
4.Stop water intake a few hours before bed time. This will help the puppy sleep through the night without waking you up to go outside.
5. Praise the dog when it poops or pees in the right spot, GENTLY scold when it does it in the wrong spot. As with any training, do not ever hit the dog.
Make sure you feed your dog at regular times every day as this makes bathroom breaks regular as well. Feed your puppy 2-3 times a day.