Flash just happens to be the format the adverts are being delivered by, you certainly don't want to get rid of flash, doing so would stop a whole load of other stuff working properly.
If you are getting lot's of adverts popping up you are probably infected with spyware/malware, a bit of software called antimalwarebytes is the best cure for these problems about at the moment.
Just download the free version, install it, let it update when you first run it and then run a full scan with it.
http://download.cnet....-8022_4-10804572.html