Well this isn't usually the cause of the problem... not for me anyway.
Normally I find that it's caused by the rubberised anti-rattle backing on the backs of the pads failing to damp the vibration of the pads as they are applied to the discs.
I fixed this on my C-Class by cleaning the backs of the pads and putting copper slip on their back faces and edges (nowhere near the friction surfaces). I then carried on with the same pads until they were nearly worn out, when I routinely changed them.
The other symptom is where the brakes squeal when you're not applying them, sometimes going round corners etc, but go quiet when you stand on them.
Ian.