Do you have a yard that isn't fenced? Here's an easy way to build a temporary fence fast and cheap. Many buildings will let you have their pallets. If you own a large dog make the pallet fence 2 pallets high so they can't jump out.
Alternative dog run but prefer flushable gravel one. Perfect Turf® Dog Runs No Muddy Paws! Much easier to maintain than natural grass. More gentle on your dog’s feet than gravel or mulch. Droppings become dry & hard making clean up a breeze!