I was under the impression that Apple makes most of its money from margins on hardware sales, with services a growing percentage (Apple TV, App Store).
The "advertising and marketing" that is involved with Apple is them spending money on it so people know about what they sell, and not so much Apple taking in advertising and marketing money (which Google and Meta do).