The vast majority of my dogs are 80-90% housebroken in weeks not months. Some of it is diet, a low carbohydrate diet works out better than the cheap food. A dogs metabolism is different than yours, they digest a lot faster, with carbohydrates their blood can overload on sugar quick and they have to purge the excess sugar by urination. Part of it is timing, learn their routine and solve problems before they happen. The third part is scolding them when they do it in the house.
If you watch a Mother dog teach the youngsters it isn't in any way positive. Sure, praise when they do it right works some, so does scolding especially when you catch them in the act. Dogs have to know why they are being scolded and sometimes have trouble associating. Make sure they know why they are being scolded, don't overdo it.