Unlike most companies, Amazon can easily track ad display or click to purchase. While they still can't establish causality (you might have bought it even without the ad), it's still fairly easy for them to calculate if the ads are worth it.
When you have Amazon's scale, you can easily do geo-controlled lift studies like the ones mentioned in the articles to get a pretty good estimate of the incremental ROAS.