Call your veterinarian or an crisis clinic instantly; coughing up blood (hemoptysis) is an emergency. Keep your dog calm, note exactly how much blood the thing is, and do not give any human medicines.
cease the Bleed: https://rsaqqhu735360.tinyblogging.com/how-to-proceed-when-your-doggy-is-coughing-up-blood-81444243