This isn't about makeup, or placing ads in a targeted magazine like Ebony. It's about real estate and housing, and the laws governing that kind of advertising are well-established and very clear.
I worked briefly in large multi-unit housing, and got some of the training related to this sort of thing (though not specifically to advertising).
We were taught that if you're showing an apartment building to someone, you can't ask their age. You can't ask if they have children. You can't ask if they're pregnant.
You can't even do seemingly innocent things like ask a woman who is pregnant or visiting with children if she'd prefer a unit near the playground. Or suggest a ground-floor unit to a person in a wheelchair, even if the building doesn't have an elevator.
Maybe it was just this company's lawyer's overreactions to the law, or perhaps the company had previous bad experiences in this area. But we were given dozens of similar scenarios and those who answered even one incorrectly had to go through enhanced training.