Run around and play with them. You want poochy nice and relaxed. If your dog is anything like mine they have more energy than the energizer bunny. If they're worn out a little they are more likely to sit still for you.
2) Let the dog get use to the camera
Let them smell it and be curious. Point around and take a couple of pictures of your surroundings. Soon your dog will realize that it's not a toy and they'll go on about their business.
3) Good old fashion bribery
Make sure that you have plenty of treats. Before you even think about taking a picture give them a few treats to get their attention. Once they know you have the treats and that you are freely giving them out, keep them in your hand near the camera. Take a few pictures and then give them a treat. Don't wait to long to hand the treat over or they might lung for the camera.
If your dog isn't treat oriented that's ok! Grab their favorite toy instead. Take a couple of pictures and then let them have the toy.
4) Take lots of pictures
By default the more pictures you take the more good photos you will have. Trust me you are going to have a million pictures of your dog sneezing and only two of them smiling with their tongue out.
5) Get down on the dogs level
Get eye level. You will see a whole new world when you are at their height.
6) Pay attention to the background
You've done it. You've finally taken the perfect picture of your dog, except there's trash bags in the background. Always pay attention to what's going on around you.
7) Have someone help you
Two heads are always better than one. If you have someone else helping out and holding the toys you can have both hands on the camera. Both hands on the camera when dealing with a hyper dog might just save your lens.
8) Take breaks
When your dog starts getting antsy take a break. If you have them sitting and posing for too long they will lose interest in the treats and toys. Mix in some play time.
Remember the happier the dog the better the photos.