Apple is a hardware company, they make most of their revenue from selling actual physical stuff. I think the second one is the cut they take for selling software to said physical devices.
Ads are a sliver in the earnings pie chart.
FB and Google though are advertising companies with services and hardware sales to support their core business.