In some countries it is, to some extent. In Norway for example, it is illegal to broadcast ads for political parties, alcohol, tobacco, plus basically any ads specifically targeting children (though the last one is often violated).