Will your puppy be 8 weeks old when you get it? In my suggestion I'm going to make that assumption.
With a brand new puppy I would recommend setting up a small area where you can be with the puppy and watch them at all times. Start by taking the pup out right away to do business after a nap, play time and feedings. Outside of that, take your pup out every half hour. Stay outside with the pup until it does its business. When it does business, praise them! Let them know how happy you are. If you cannot be dedicated to watching your pup, I would recommend crating. Most pups will not go where they sleep.
As for sleeping at night, I'd recommend crate training. We kept our pups crate in our room with us for the first few weeks and set out alarm to get up every 3 hours to take him out to do business. Now that our pup is 9 months old and makes it through the night, he isn't crated at night anymore.
Sent from my iPhone using Petguide.com Free App
This is what I did as well. I remember that first week, I literally took him out every 30 minutes. The second week I had him it was about every hour. I also took him out after napping, playing, and feeding as the poster above mentioned.
Jazz, Shiloh Shepherd, 5 yrs old, CGC HIC
Bunny, GSD X, 7.5 years old