Programmatic marketing and advertising is the buying and selling of advertising space in real time by using algorithms. This process uses software that automates the buying, placement, and optimization of media inventory (ads) via a bidding system which selects the highest bidder for a given ad space.