With its recent purchase of AppNexus and Time Warner, AT&T is looking to compete with Silicon Valley giants Facebook and Google for ad revenue.