Automation, such as using algorithms to buy ad space on various websites in real time, allows ads to be served to specific audiences efficiently.