The order comes days after the BBC published an investigation about the platform showing such ads to users.