They can show ads on the service. They can even ask people to opt in to targeted advertising.
What they can't do is harvest people's personal data to monetize the service.
In other words: You can give away potatoes for free. You can sell potatoes for money. You can sell potatoes for onions. You can, in many countries, even sell potatoes for sexual favors, although there will be some rules to protect against exploitation. What you cannot do, in most countries, is sell potatoes for kidneys, and you most definitely can't sell potatoes while surreptitiously removing customer's kidneys and hoping they don't notice or care enough because they have two and you're only taking one.
What the hell are you talking about? You can keep providing ads. If it's a paid service, you can keep providing a paid service. No one is asking you to do stuff for free.