The best way to optimize CPM is to focus on targeting the right audience, using the right platforms, and creating high-quality ads. Additionally, it is important to track and analyze the performance of your campaigns in order to identify areas for improvement.