Bait and Switch

What does the idiom “bait and switch” mean?

Definition: advertise something for sale but then substitute a different item when buyers arrive

Example: That’s not the same car as the one in the ad. It doesn’t have air-conditioning. You should know that this kind of bait-and-switch is illegal in many places.