Merkle interview question

How are Ads ranked on google ?