Google parent company Alphabet on Monday posted earnings and revenue that topped analysts' expectations, as advertising drove strong sales growth.

The technology giant reported fourth-quarter earnings of $8.67 per Class A share on $21.33 billion in revenue. Total sales rose 18 percent from the previous year, as advertising revenue climbed 17 percent. Earnings per share rose from $6.76 the previous year.