Ad Server is the server that does the ad serving. It can belong to the publisher or to the advertiser. In Supply (Publisher) and in Demand (Advertiser), the Adserver does the same. For both, the adserver will measure the impressions, clicks, errors. If connected to RTB, the matches, bid requests,