There are lots of coherent arguments (whether you agree with them or not) about why defence tech could be considered valuable. Ad-tech has a lot less going for it.
Most people don't care all that much how much value their work adds to society. As long as it doesn't cause much harm and lets me live comfy, who cares.