It is possible to measure perceived loudness and crank it down if it is above a certain unacceptable threshold. That way normal programs wouldn't be affected but only nasty adverts are culled.
A better solution would be to make excessive audio-cooking illegal. The penalty could be that the offender is strapped to an electric chair and is electrocuted by his own dynamically-compressed waveform. Then they'll be sorry. Ha!