Perhaps you aren't at home during the day to take your puppy outside to potty or maybe it is insistent upon relieving itself in your house instead of when you take it outside. Whatever the reason, using training pads as a way to teach your puppy not to go on the floor can solve your problem. Once your puppy learns that the pad is the only appropriate area to potty, it will cease going on your floors.
Designate an area for your puppy while you are teaching it to potty on the pad. If necessary, set up a baby gate to confine it to a certain area, particularly one with hard floors that are easy to clean.
Spread training pads all over the surface of the confined area of floor at first so that the puppy won't miss its mark. If you just put one or two pads in the area, you can't expect the puppy to know that's where you want it to go.
Remove soiled training pads and replace them with fresh ones as needed. Make note if there's a specific area the dog tends to relieve itself upon.
Remove a training pad every three days, but not the ones that cover the areas the puppy seems to favor.
Keep removing training pads every three days until there's just one left. Discard and replace the training pad as needed.