Twitter is making more money with fewer users

Twitter is making more money with fewer users, helping offset investors’ concerns about ongoing efforts to purge bad actors and clean up the platform.

Twitter on Thursday posted stronger than expected sales and profits for the third quarter despite a continued decline in the number of monthly active users.

The social network had 326 million monthly active users for the three months ending in September, down from 335 million in the previous quarter and 330 million in the same period a year earlier. In the United States, the number of monthly active users fell to 67 million from 68 million in the prior quarter.

Twitter chalked up the user decline in part to its efforts to comply with a new European data privacy law as well as “decisions we have made to prioritize the health of the platform.” But it also highlighted continued growth in the number of daily active users, which grew 9% in the quarter.

“This quarter’s strong results prove we can prioritize the long-term health of Twitter while growing the number of people who participate in public conversation,” Jack Dorsey, Twitter’s CEO and cofounder, said in a statement.

That pitch appears to be working with advertisers. Twitter’s sales hit $758 million for the quarter, a nearly 30% increase from a year prior, on the strength of its ad sales business. Twitter also continued its streak of profitable quarters, posting a net income of $106 million for the three month period.

The stock jumped more than 10% in pre-market trading Thursday following the earnings report.

In recent months, Twitter has focused on safeguarding the service amid scrutiny of its role in spreading fake news and election meddling as well as the broader data privacy backlash hitting the tech industry. It cracked down on fake accounts, purging suspicious accounts from users’ follower metrics and removed 143,000 apps between April and June for violating its policies.

Like Facebook, Twitter is working to comply with the General Data Protection Regulation, which took effect in Europe earlier this year. The company said in April that monthly active user growth could be “negatively impacted” by the new rules.