Online adverts

I’ve always bought stuff based on what I need and choose myself not what adverts are trying to encourage me to buy.
Online information is great for finding availability.
But the advertising industry is massive so they must think it works in many cases.