Brands, from McDonald's to H&M, drew backlash in some quarters over their AI-driven ads and marketing experiments.