Pinterest announces multiyear ads partnership with Amazon alongside earnings beat