Actually a significant percentage of Apple’s profit comes from free-to-play iPhone games, which contain a lot of adverts.
Grabbing some figures from different sources:
* “Apple reported a profit of $23.6 billion in its second quarter, on record sales of $89.6”
* “According to the ruling, gaming apps account for approximately 70% of all App Store revenue. That 70% is generated by less than 10% of all App”
* “Barnes calculated that the App Store had hefty profit margins, which increased to 78% in 2019”
* “Apple's App Store had gross sales around $64 billion last year”
78% of 64G$ is ~50G$, and 23.6G$ x4 is ~95G$, so let us say that 50% of profits come from the App Store.
I would guess that at least 25% of Apple profits come indirectly from in app advertising for apps related to in-app-purchases. You know, those annoying adverts in free games, that are mostly nothing like YouTube adverts, because the highest payout for the adverts is by advertising gambling and pay to play games. The adverts pay well because the in app purchases pay developers well, and Apple takes their cut from that.
Note that Apple do not provide a clear breakdown of App Store profits compared to iPhone sales profits: https://www.marketwatch.com/story/how-profitable-is-apples-a...