From a publisher's perspective, CPM is a useful way to compare revenue across different channels and advertising programs. It is calculated by dividing total earnings by the number of impressions in thousands. For example, if a publisher earned $160 from 32,000 impressions, the CPM would equal $160/32, or $5.00.