Under U.S. federal law, and under the few state laws of which I am aware, it is not unlawful to expand a pool of applicants based on a protected class such as race, age, sex, etc., but it is unlawful to select an applicant for employment based on a protected class. An advertisement could lawfully encourage applications by persons having certain protected attributes (e.g., born and raised in South America; Native American; Veteran; transgender) in order to diversify the workforce, but it could not lawfully suggest that hiring preference would be given to applicants with those protected attributes. That's a fine line, and it's easy for an employer to cross it, either willfully or inadvertantly. It's best--from both a practical and a legal perspective--to determine the hiring criteria and process before seeking applicants,applicants; and to separate thethat screening process from the advertising process. The advertising process could, for example, target underrepresented groups as long as it did not preclude other persons/groups from learning about or applying for the opportunities.