How to stop buying useless things: stop buying useless things.
If that's hard, reduce or eliminate your exposure to advertisements. Eliminate broadcast and cable TV, install an adblocker in your browser.