Pinterest reported second-quarter earnings on Thursday in which it beat on sales but missed on earnings per share.