The 35-year-old Spaniard falls in the first round at a major for the first time in over 12 years.
The Canadian will face Russia's Daniil Medvedeve in the first round on Monday.
The tournament announced the launch of its new "Full Bloom" campaign for 2018.
The Russian wild card will face No.2-seeded Simona Halep in her opener.
Roger Federr and Rafael Nadal have been placed in the same half of the 2017 Men's Singles Draw at the US Open.
Former analyst suing after his "guerilla effect" comment on Venus led to firing from ESPN.
Montreal champion can win first major in New York, says Brad Gilbert.