Apple definitely makes a lot of money from advertising...probably more than they make from selling Macs (based on 2022 results).
Also I think this quote might be technically right, but Mozilla's revenue is almost entirely paid from advertising companies who pay royalties to have their search engines by default in Firefox. So they are very much coupled to the dynamics of the ads industry.