I Agree with other posts use a powerful vacuum cleaner to get it out of the carpet. This to say a standard vacuum cleaner is not likely to do the job, so you may need alternates.
A shop vacuum would work well. They have high suction with a variety of attachments that well may work to get the glitter.
A carpet cleaning machine. Handheld or consumer models all offer a higher suction then a conventional vacuum cleaner and can be bought from about 40 USD for a handheld to several hundred USD for a stand up model. If just air does not pull the glitter out you can try the detergent and water, which gives you even more agitation and chemical to release the glitter from your carpet.
Rent a carpet cleaner. Available at many grocery stores, hardware stores and rental yards, check your local listings. Cheaper then buying and the machines are generally a little more powerful then buying.
And last resort is a professional carpet cleaner whom have very powerful equipment and can get the job done.
I see as I write that you accepted lint roller as the answer, if that works that is great.