What makes you think it was Google that was responsible for the nasties you had picked up?
I had a popup screen from Google that offered to restrict the nature of the adverts to 'non-specific' ones.
Of course it's possible that I only saw it when something else disabled AdBlocker.