Explain how a real-time bidding (RTB) auction works from the moment a user loads a webpage to the moment an ad is served.