Kennel cough, which is a type of respiratory infection, is a common cause of dog gagging, which results in a harsh, goose-like cough, sometimes followed by a gag. There are other infectious diseases that can also cause gagging, and a more severe diseasepneumoniacan sometimes cause gagging in dogs, as well.