My understanding is that if you use a ham radio to [view] the internet you can't go to any web page with an [advertisement] on it.
In the US, at least, the regulations (FCC regulations Part 97.113 in the US) prohibit "communications in which the station licensee
Viewing a web page that had a few ads over a D-Star or packet network is not a violation, but sending an advertisement, or solicitation would be against the regulations.
The biggest impediment to using the Internet over ham radio is the prohibition on encrypted content. So sending a PGP-encrypted message or viewing a website over HTTPS would be against the rules.
Saliva causes cancer, but only if swallowed in small amounts over a long period of time. -- George Carlin