The deal will allow the delivery company to sell ads all over the internet.