An ad server is a computer server that store advertisements and delivers to website visitors
Local Ad Server
Local ad servers are typically run by a single publisher and serve ads to that publisher's domains
Remote Ad Server
Remote ad servers can serve ads across domains owned by multiple publishers. They deliver the ads from one central source so that advertisers and publishers can track the distribution of their online advertisements, and have one location for controlling the rotation and distribution of their advertisements across the web.