Sort of, they are being built to power AI models which do all kinds of things, but yes definitely advertising is part of it. Ads are mature now though, these mega corps have fine-tuned their products and squeezed every last advertising penny out of their audiences that they can, there isn't as much new stuff to build in that area now.
I'm still curious what all these companies exactly want genAI for, but I doubt it's about ads. And the other kinds of AI aren't driving the new power usage.