A Comprehensive Analysis of First-Price and Second-Price Auctions in Digital Advertising