Here in Sweden it's illegal to make ads directed at children. Consequently the TV channels that do so transmit from abroad.
This would of course have been easy to ban anyway-- it's not like we can't have rules on foreign internet firms, for example, but historically the politicians were unwilling to make a useful law.
I think the Swiss could take one step further and add a general ban on ads targeting young children in addition to this; and then we Swedes should imitate the package.
It is also banned in Iceland, but sometimes in the 2000s they stopped enforcing it, probably as people were getting more and more of their broadcasts from abroad. Curiously the milk monopoly (Mjólkursamsalan) was allowed to target children in their ads throughout this period.
The US has (had? I haven't checked in 40 years) rules like that for TV. It killed most of the TV programs for kids that were populate. The programs my parents remember fondly - not possible anymore because they need ads. I remember only public broadcasting kids programs.