In India's cash-guzzling startup ecosystem, profit stories are a bit of an aberration. So much so that even its poster-child, Flipkart, hasn't turned a profit in a decade of its existence.

But here's a success story and only the second one from India.

Mobile advertising firm InMobi, one of India's 10 unicorns, is now a profit-making venture. Data analytics firm Mu Sigma is the only other Indian unicorn with that distinction. (India's other unicorns are Flipkart, Snapdeal, Ola, Paytm, Quikr, Hike, ShopClues and Zomato.)

InMobi, backed by Japanese telecom giant Softbank, competes with the likes of Facebook and Google in the ad tech space and was also the first Indian startup to be valued at over $1 billion six years ago. It began operations in 2007.

Sharp growth in video ads on its platform and a burgeoning market in China saw InMobi record a profit of $8-10 million on revenues of $300 million in 2016, say reports.

"Revenues from the advanced video ad platform grew 4.22X year on year, and is projected to be the biggest driver of growth in 2017," the company said in a statement to Mashable.

We're happy to announce that @InMobi has become profitable. Thank you InMobians for your grit, focus & execution. https://t.co/VnFgATW1Xd — InMobi (@InMobi) April 5, 2017

Naveen Tewari, Co-founder & CEO of InModi said: "We are no longer dependent on anyone, the business can scale on its own."

China is now InMobi's second-largest market after the US, accounting for 28 percent of its revenues, according to Tech In Asia. The US contributes 30 percent. India, Indonesia and Australia complete the top five geographies.

InMobi's software development tools are integrated in 30,000+ apps, which allows it to gather a wealth of information about users. It then uses that information to offer customized ads to nearly 1.5 billion users.

Social media is abuzz with congratulatory messages for the Bangalore-based startup.

@InMobi @NaveenTewari Beware! You are going against the trend... Much needed for the ecosystem, though :) — Sagar Bedmutha (@SagarBedmutha) April 5, 2017

Pleasantly surprised at @InMobi turnaround. Personally didn't find it to be a great network to scale on! Maybe, things have changed! — Varun (@_varunparikh) April 6, 2017

Its hard to beat an organization that never gives up!! Big Congratulations to Inmobi :) https://t.co/VxHHSxBMOx — Aditi Tewari (@ad_te) April 5, 2017

InMobi turns profitable ! Proud of how we came together as a team last year, stayed low with heads-down execution,…https://t.co/gFCDK2UKKL — Piyush Shah (@shahbuckler) April 4, 2017

At a time when #Sotbank is mum on its India bets, their bullishness on #InMobi matters to the start-up ecosystem - https://t.co/BD7t5gkuVB — Adithya Venkatesan (@adadithya) April 5, 2017

InMobi is profitable! All the hard work and focus paying off.. https://t.co/F4BtrOYCB6 — Varsha (@7varsha) April 5, 2017

@PKGulati maybe the nth time but worth saying it again... @InMobi that rare combination of vision and execution @NaveenTewari @amitgupta007 — Sandeep Todi -Remitr (@sandeeptodi) April 6, 2017