News Amazon earnings boosted by AI, ads, and cost-cutting