Same goes for billboards. Suburbs? Subway? The highway 2 towns over?
Print media, TV time...the list goes on.
13 states (California, Connecticut, Delaware, Maine, Massachusetts, Minnesota, New Jersey, North Dakota, Oklahoma, Oregon, Utah, Vermont, and Wisconsin) and DC consider "source of income" a basis for a protected class, and so you probably couldn't target ads in those states based on that, but I don't see anything that would cover wealth level rather than wealth source.
(Neat site with a nice way to look up which state protects what [1])
Since you can have a wealth requirement for renting (e.g., you can require that the person be able to afford the rent), there wouldn't be much point in prohibiting targeting based on that.
[1] http://lawatlas.org/datasets/state-fair-housing-protections-...
Using your analogy, when you buy a hammer you don't tell the cashier it's for murder.