The company’s earnings came in below expectations, with the stage set for big gains with the company’s ad business in the fourth quarter.