Hi Danielle, Sounds like he was trying to throw up so doesn't need to have vomitting induced. This is only done when the dog is not gagging and you know he just ate a sock or some other prize! I would have your vet check his throat in case he has a seed or piece of stick stuck, alternatively feed him something like stodgy rice and see if he can swallow the obstruction down into his stomach. If he is still gagging and not desiring to eat off to the vet's you go:-)
Rose