There are many potential causes, including foreign body, partial
gastrointestinal obstruction, infection, parasites and cancer. I
would suggest taking your dog to a veterinarian for an examination,
as this is probably not going to get better on its own.