I am a qualified technician, that is what is called adware.
Adware is malware that tracks what you do using spyware then displays ads to you.
The type you have displays them in your browser. Very common.
1. uninstal all applications that seem supicious and applications that you do not use very often.
2. click on the start menu at the bottom left of your desktop. Then click run. Type msconfig. Press enter.
3. when there go to the services tab. Tick the hide microsoft services box. Turn off all the services that you do not need to run when your computer starts, this will also speed your computer up.
4. go to the next tab called startup, disable everything except programs from your computers manifacturer, microsoft and you antivirus provider. Nothing else needs to start up, this will also speed up you computer.
5. Install ccleaner(google it, piriform make it.) Run registry cleaner and the normal cleaner. This will remove the temporary files created by the adware.
6. Update your antivirus, by opening your antivirus and clicking update. When completed restart your computer.
7. Run windows updates, and java updates, adobe updates each will make your computer more secure.
8. Restart again.
9. Run a complete Virus scan using your antivirus.
10. Install malwarebytes and update it, restart.
11. Run a scan with malwarebytes.
That's it all the adware should be gone.