Amazon Prime ads help tech giant drive profits

The tech giant did better than expected in many areas of its business.