In SEM, an ad auction takes place whenever a user enters a search query. Advertisers bid on specific keywords, and factors such as the bid amount and Quality Score determine which ads appear and their position on the SERPs.