Mastering Precise A/B Testing for Ad Campaign Optimization: A Step-by-Step Deep Dive