I worked in adTech. The company I worked for did not collect personal or demographic data, and we did not care about users' cookies, so I did not feel too conflicted from the ethical perspective, but still found it difficult to explain to non-tech people exactly what my job was.
The thing that attracted me to it was the technology and scale of data involved. From a purely engineering perspective, it was highly attractive. It was a small company, and as a small company in ad tech that still meant rapid and 0-downtime deploys, deeply-ingrained devops culture, rapidly evolving technology, and indexing/reporting/decision-making on thousands of events events every second. During peak seasons, every day we'd have another terabyte of data in the database.
AdTech also affords a lot more transparency into company finances than you would in other companies. You're building the tools used for reporting on revenue and costs that the entire business uses for almost all decision-making. Engineers don't live in a silo from that perspective.
From a product perspective, it was much less rewarding. You know how often times internal-facing applications have the worst UX? Everything we built felt like that because ultimately it was. There is also a lot of pressure that comes with the points above -- every second our system takes to throttle an ad campaign that has reached their budget, encounters an unavoidable AWS downtime, or exposes a reporting bug is company dollars down the drain.