I have a small Yorkie he is 2 years old.

What is wrong with my dog? A few weeks ago I gave my dog these things called "Shake-Ins" They are like little small bead like things that go in your dogs food. I gave them to him and he was fine for a few weeks. Then out of nowhere one day he threw up all over his cage.

We stopped giving it to him for a few day and he stopped throwing up.
I gave a few to him today to bribe him into his cage and then he started yelping. I went to go check on him because he hardly every whines or yelps. I went to check on him and I saw that he threw up even more than last time. I let him out of his cage and I gave him lots of water. I checked on him about 5 minutes later and everywhere in the garage he threw up

My question is:

Is it the dog treats I gave him ("Shake-Ins")
or
Could it be something else?

Please help, my family doesn't have a lot of money to take him to the vet because I had to take my other dog for something that happened to him.

Please not rude or nasty comments, I just want to know what's wrong with my dog...

Thank you to all the people that decided to help