The idea that a company can override laws via its TOS is a bit strange.

Genuinely curious. By not allowing a specific type of ad, what law are they breaking?