This is about consistency in taking your puppy outside.  Of course German Shepherds should be outside allot anyway, but when inside, take your puppy out frequently and they will develop the habit of wanting to relieve themselves outside. Dogs don’t want to go on an artificial surface anyway, they want grass or dirt. Always praise your puppy for relieving themselves outside. NEVER scold or reprimand ANY dog of ANY age for relieving themselves inside- SCOLD YOURSELF for being neglectful and NON- observant !!  One trick is after a puppy has defecated inside, take the feces to your yard where you desire your puppy to potty. Show your puppy the feces after you have placed it outside. It might make speed the process of them learning to potty outside.