In strict terms yes, if you didn't get informed consent from your test subjects that would be unethical.
Research has a lot of policies and systems set up to ensure that if your testing involves people, you must get informed consent from the persons before even trying to do the test, and it's really not hard to imagine why this is a stringent standard -- it's very easy to miss how "simple tests" can and often are adverse to those participating in the test or have unintended consequences that the researchers didn't accommodate for, regardless of the reason they did not.
Ads are often portrayed as harmless but, like, there's a reason there are restrictions on advertising for certain highly addictive products and regulations against false or misleading advertising, or certain tactics aren't allowed.