Clint Frazier didn’t get a hit in his first game back from his exile with Triple-A Scranton/Wilkes-Barre and was pinch hit for in the bottom of the ninth, but the outfielder didn’t mind.

“I had a shot in every at-bat,’’ Frazier said after the Yankees beat the A’s, 5-4, in The Bronx. “I hit two balls over 105 mph and had no hits. I can’t complain. I’m just happy to be here. The results are what they are.”

Frazier was away from the Yankees after being optioned to SWB on June 16, following their acquisition of Edwin Encarnacion. Frazier’s poor defense and questionable attitude helped keep him in the minors. And Mike Tauchman emerged as an everyday player in the absence of outfielders Aaron Hicks and Giancarlo Stanton.

Frazier finally got called back up Sunday, when rosters expanded, and he was inserted right into the lineup as the DH against Oakland left-hander Sean Manaea.

Frazier said he gained something from the experience of being with SWB again.

“Obviously, I performed pretty well offensively when I was up here [before],’’ Frazier said. “I had some defensive stuff to iron out. I played good down there. I played well in the outfield and for the first time enjoyed my defensive work because I was seeing the results. Before, defense was never as fun as hitting.”

He credited SWB outfield coach Julio Borbon with helping him improve, but said it was difficult being in the minors.

“There were a lot of different emotions,’’ Frazier said. “I was just trying to have fun and still be excited to play baseball down there. That was hard at times. The atmosphere up here is nowhere near what is down there. They still put on a good show, but it’s not the same.’’

Frazier struggled for much of his time with SWB, but hit better lately.

“He’s working hard on his game,’’ Aaron Boone said before the game. “We know the defensive part of it and he continues to work very hard at it. We know he has capabilities. Hopefully he comes up here and continues to impact us like he did when he was here [before].”

Frazier drew a four-pitch walk against Manaea to load the bases in the fifth and grounded out twice to third before being lifted for Mike Ford against right-hander Liam Hendriks in the bottom of the ninth, when Ford delivered the game-winning homer.

“I felt good,’’ Frazier said. “I had more adrenaline than I had the past couple of weeks. I was happy with how I felt at the plate.’’