The fact that advertising sometimes actually helps in discovering a product you actually needed is a coincidence. The main point of advertising is to convince people to prefer a product for reasons other than cost/benefit.
Even in your case - did you see the ad and immediately bought the product? Or did you see the ad and then actually went and looked for reviews, competitors, tried it out yourself etc? If you did the former, you almost certainly got scammed at least to some extent. If you did the latter, then it's not the ad that convinced you, it's the reviews/personal trial/price comparison. The ad happened to show you the product existed, but the same could have happened from a mention in a comment or anything else. The ad was not designed to show the product exists, it was designed to convince you it has certain characteristics that the product may or may not actually have.