I have put my method of toilet training here as it is a very exciting time when you have a new member of the household, but perhaps we don't realise or have forgotten how methodical we have to be, to get success quickly.
I always put new additions in a crate, (cage). Never use them as a punishment or a prison.
Don't give more space than is needed, you don't want room for sleeping and toileting. If an eventual large breed, and you have bought a crate for that breed when adult, divide up with a cardboard box on its side blocking off not needed space, as this is just for teaching house training not permanent living. Feed in the crate you can then make sure you haven't omitted to take them out if you get distracted.
On getting up in the morning, take a lead with you, pop onto puppy, and take outside immediately, never just let a puppy out on their own at this stage, they may get frightened, but they can just start playing or sniffing and forget what you want them to do, because they don't know you have put them out to empty themselves. When they are actually emptying themselves, is when you put a command in, I use, spend a penny, bring puppy back in the house. After puppy has had breakfast, ten minutes later pop on lead and take out again, to the same spot, so decide where is convenient for you, for the puppy to empty themselves. (easy to keep clean or away from where children play or you sit etc). The dog generally after eating will have to open its bowels, if this has not happened pop puppy back in the crate leave ten minutes and then pop lead back on and take out again.
This needs to be repeated each time they wake up, have a drink, or eat. and then set something on the hour, each hour to remind you to take your puppy or new dog out. I use a cake timer, an alarm on a mobile phone would be a good idea.
The idea is suggesting a crate is because it's mum will have taught your puppy never to foul the bed always to move away, so our move away, is outside, but, obviously we need to teach where this is. If an accident does occur, never raise your voice or get cross at the puppy, it is your fault for not being methodical or observant.