Get those puppy pads for sure. They have some kind of scent that makes a puppy pee on them and not the carpet. Your dog will learn with time. Some dogs take longer. I had a puppy last year that was peeing and crapping in the house until she was over a year old. It was Less and less with time and now she is totally housebroke. Try and catch your dog in the act and immediately grab her and yell NO! and take her outside. Spanking or hitting a dog is NEVER necessary. Not saying you do, just sayin.
Just Be patient and it will happen, guaranteed.