Final answer:
The federal law that is violated when a lender engages in targeted advertising of different products depending on the neighborhood is the Equal Credit Opportunity Act.
Step-by-step explanation:
The federal law that is violated when a lender engages in targeted advertising of different products depending on the neighborhood is the Equal Credit Opportunity Act (ECOA).
The ECOA prohibits lenders from using factors such as gender, race, ethnicity, and under certain circumstances, age, in making decisions regarding the extension of credit.
This law was implemented to end discriminatory practices and ensure fair access to credit for all individuals, regardless of their personal characteristics or the neighborhood they live in.