It is commpletely illegal. Check this post which also has a link to the RBI circular.
The ads are placed by advertisers on Moneycontrol through Ad-exchanges. Moneycontrol isn’t advertising but just letting others run ads on its site. But yeah, nobody seems to be to be regulating this.