Spain registered a 1-0 win over Switzerland while Germany defeated Ukraine 2-1 in Kyiv for its first win in the Nations League.
A blunder from Switzerland goalkeeper Yann Sommer was enough for Spain to win 1-0 in an empty stadium in Madrid while Germany scored once in either half to beat hosts Ukraine 2-1.
Matthias Ginter put them ahead in the 20th minutes after good work from Antonio Ruediger, and Leon Goretzka pounced on a mistake by Ukraine keeper Georgiy Bushchan to head in their second goal four minutes after the restart.
Spain lead League A Group 4 with seven points from three games, two points ahead of Germany, who beat Ukraine 2-1.
Former Barcelona coach Luis Enrique had picked an experimental side with plenty of youth and Spain did enough to win but were far from their best at the Alfredo di Stefano stadium at Real Madrid's training ground.
Switzerland carved out the first chance of the game but keeper David de Gea reacted well to deny Loris Benito, before the visitors handed Spain the lead on a platter.
Goalkeeper Yann Sommer misplaced his pass to Granit Xhaka because of Spain's high press, with Mikel Merino nipping in to steal the ball and feed Real Sociedad team mate Oyarzabal, who finished with ease.
"The goal isn't their mistake, it's our good play," said Luis Enrique. "It was great work by our team that was rewarded by a goal."
"In the final third we weren't able to finish and we have to keep working on that, me especially," said Traore. "But we leave here with the three points."