The company’s decision to include ads in WhatsApp comes after persistent rumors about Meta’s plans to monetize the platform.