Merkle interview question

How does google rank ads?