I'm going to assume no one here thinks this decision is so foolish that it will single handedly bring about the fall of Salesforce.
As soon as you stray into the land of "we should make this decision on Salesforce's behalf", you're straying into a "known-unknown", and acting as if it's obvious what the correct decision is is always the downfall of those who seek to plan society according to their morality.
If you said "I accept that I don't know if this was a good move for generating profit or not, but I still don't think it should be allowed", I might be more inclined to entertain the idea!
I have no insider knowledge of the inner working of salesforce but I can reasonably surmise that they aren’t paying him to literally sit around.
People aren’t arguing against the merit of advertising. The argument is against the specific case of a massive, already well-recognized and widely-integrated SaaS company paying a specific actor 10 million, while doing layoffs, and the benefit that actor brings versus those laid off.
If Salesforce just started, maybe the name recognition would make sense. My personal belief is that the company is too big already for it to matter. I also don’t think middle-aged CEO’s understand marketing as well as they think: every A-list celebrity advertising campaign I can think of has, from the outside looking in, appeared to go poorly (eg Coinbase).