It depends on what you're selling.
> How would you enforce this?
Case by case. We already do this, this isn't a hypothetical. You can't advertise tobacco anymore and guess what, lots less people addicted and we're saving literally millions of lives in the long run.