It's a very smooth gradient from optimizing a sales funnel to writing gambling software. I don't know where the line is, but in both cases you're exploiting human psychology to make more money.
And its also why some of the anarchist folks I hang out with say there's no ethical consumption under capitalism. And definitely in areas, they're completely correct.
I tend to agree too. It’s incredibly hard to do much in the US without bumping into some ugly part of capitalism because the ugly parts constitute the majority.