candidate: When Spain later objected to the United States purchasing Louisiana from France , Madison responded that America had first approached Spain to purchase the property , and had been told by Spain itself that America would have to treat with France for the territory .