Ads that permit code to run locally are a security hazard. That’s most ad platforms.
I’d deal with intrusive ads just fine (and when I was younger I used to), but I run an adblocker and noscript for security reasons. Unobtrusive ads don’t change that for me.