A virus scanner is unlikely to alert on ads displayed (unless the remote site is considered malicious or is actually malware), as there would be legitimate cases where ads are displayed.
What is telling you it is malware or is that your interpretation ?
Me I use AdBlockPlus add-on in firefox and I rarely if ever see any ads or pop-ups, etc.