Was Buddhism the main religion in ancient India, because ancient kings were mostly Buddhists such as the Pala kings?

Was Buddhism the main religion in ancient India, because ancient kings were mostly Buddhists such as the Pala kings?

quanswer.com