Or break Google apart. In a perfect market, ad companies would compete and their terms around UGC would be a part of that competition. Since Google is basically the only game in town, break them apart until they are no longer in a position to dictate what speech is acceptable on the internet.
Google should absolutely have the right to say no to running ads on sites they think are objectionable. The issue is that there's not a healthy market.