I think this was the plot of a Black Mirror episode?
This was a throwaway line in the 1995 novel The Diamond Age. The thug knew a guy who had a spinal implant(?) which got hacked and now the guy saw ads across the bottom of his vision for life.
Futurama too (The Eye-Phone, or something).
It's the plot of many a dystopian scifi story.
When I started playing Shadowrun in the 90s, I thought neural implants were cool and I wanted to get one. Around the time Google started buying up ad companies, I realized that the hardware in my head would never be mine. But yes, I think Black Mirror has done an excellent job with these topics.