My suggestion get him to the vet before he stops eating and you loose him.
x2
Usually I do not cater to a finicky eater. Instead I cut the feed back until he gets a good appetite.
In this case I have to agree with the above posts. Your dog might have blockage but for sure needs to go to the vet.