Even if McDonalds could tell Google not to show the ad to vegetarians, they have no way to verify Google isn't.
Google has a lot of incentive to optimize this, and it's a lot of why they (and Meta) spent so much money on AI research that eventually brought us modern AI.