Try this
How long he/she been like that? My dog was in that condition for about 1 week when she was 8 months old. My vet suggested the following and it cured her within 1 week and then back on regular diet.
1. No treats.
2. Chicken and rice (1:3 or 1:2) cooked.
3. Plain Yogurt and cottage cheese.