I’m a product designer who has worked on a lot of products that have been monetized with ads.
It’s pretty common for a company to split their revenue targets between register sales and monetization deals. You break even on the hardware, and make profit on the ads.