Patience is the key. You have only had your dog for two months which is not a very long time in light of the fact that your dog could live another 10-15 years. The time you invest now in good training will pay off many times over in the years to come. Also, your dog is still very young. We don't expect a two year old child to be potty trained and expecting a 4-5 month old puppy to be housetrained is asking too much.
Every dog is different.
Some may be housetrained at 3 months, others may take much longer. Also, keep in mind, when you are housetraining your dog you are also teaching the dog many other things about what your relationship will be. You are molding the dog's personality. Your dog wants to please you. Give your dog numerous chances throughout the day to please you by going outside.