You're not taking excess cash, you're providing them value (in the form of engineering expertise) in excess of the value you extract as a salary. That's the whole reason companies hire employees!
Unless you're advocating for getting hired in adtech and then sabotaging their projects from within while collecting a salary, but I don't think that's ethical, legal, or what you're describing...
Unless you're advocating for getting hired in adtech and then sabotaging their projects from within while collecting a salary, but I don't think that's ethical, legal, or what you're describing...