Automated purchasing of media through algorithms for efficiency and scale.