Merkle interview question

how does google rank their ads