SAN FRANCISCO (AP) -- Miami manager Mike Redmond got immediateresults from his decision to put Justin Ruggiano in the leadoffspot.

Ruggiano started the game with a home run in his third careerstart in the leadoff spot and added a two-run shot in the ninththat broke it open for the Marlins, who beat the Giants 7-2Sunday for their 10th win in their last 11 games in SanFrancisco.

"This guy's got a lot of power," Redmond said. "We talked aboutour offense and trying to get guys in situations. We just ledhim off in hopes he'd put together some good at-bats and ithappened, he hit a couple of big home runs. It was great. He hada great day and was a huge part of the win today."

Nathan Eovaldi (1-0) held the Giants in check into the seventhinning and Marcell Ozuna hit an RBI double and solo homer as theMarlins bested Matt Cain (5-4) and a struggling San Franciscobullpen to wrap up their first winning road trip of the season.

The Marlins went 4-3 in Arizona and San Francisco after takingtwo of three at home against St. Louis as they try to put arough 16-44 start to the season in the past.

"Awesome road trip," Ruggiano said. "We played some tough teams.To come out with a winning record, first time this year, you cansee things turn around a little bit. It's exciting to come tothe ballpark. We're having fun."

The defending World Series champion Giants dropped three of fourat home to the team with the worst record in the NationalLeague, scoring just eight runs in the four games.

The Giants went 3-4 on the homestand that started with threegames against San Diego, marking their first losing homestandsince going 3-7 from July 23-Aug. 2 last summer. San Fraciscohad won or split the last 10 homestands.

"You can try to make excuses but really we didn't get the jobdone," Cain said. "We didn't get some guys in when we needed toand we didn't throw the ball like we needed to. We had somegames where we had the lead and we didn't finish it off. Youhave to kind of just say it's over with and move on now."

The Giants did end a 90-inning home run drought when HunterPence led off the seventh against Eovaldi with a drive over theleft field fence for his 12th of the season to cut Miami's ledto 3-2. It was San Francisco's first homer since a leadoff shotby Gregor Blanco on June 14 in Atlanta.

The eight homerless games coincided with an injury to thirdbaseman Pablo Sandoval, who has been out since June 8 with aleft foot strain. Sandoval homered the past two days on a rehabassignment with Class A San Jose and will be activated Mondayfor the series opener in Los Angeles.

"We need a lift right now," manager Bruce Bochy said. "He's abig bat, presence in the lineup. Hopefully he'll take a littlepressure off the other guys trying to do too much. Any timeyou're missing a guy that's hitting in the heart of the order itdoes make it a little tougher. Hopefully he will spark thislineup."

But Sandoval could only watch against Eovaldi and the Marlins.

Eovaldi allowed just two hits in the first five innings - a linedrive that went in and out of the glove of sliding right fielderGiancarlo Stanton in the first inning and an infield hit betweenthe pitcher's mound and first base by Blanco in the fourth.

Eovaldi was finally touched for a run in the sixth whenpinch-hitter Tony Abreu tripled and scored on a groundout byMarco Scutaro. Eovaldi's day ended when he walked Brandon Beltfollowing Pence's homer in the seventh. He allowed two runs andfour hits in six-plus innings.

Ryan Webb preserved the lead when he got pinch-hitter JoaquinArias to hit into a 1-6-3 double play with runners on first andthird to end the seventh.

"It's really just a reaction play," Webb said. "As soon as Icaught it, I just made sure I had the grip on it. Thankfully wewere able to turn it."

Chad Qualls pitched a scoreless eighth with help. Scutaro madethe second out at second base when he tried to advance afterStanton threw to third following a single.

The Marlins broke the game open with a four-run ninth againstJean Machi that featured homers by Ozuna and Ruggiano. It wasRuggiano's second career multihomer game.

Cain pitched fairly well after the leadoff homer by Ruggiano onthe second pitch of the game. Cain struck out eight batters andwalked none in six innings.

The Marlins scored single runs in the fourth on an RBI double byOzuna and sixth when first baseman Belt couldn't handle a hotshot by Logan Morrison for a run-scoring error that made it 3-0.

NOTES: San Francisco optioned INF Nick Noonan to Triple-A Fresnoafter the game to make room for Sandoval. ... The Giants areuncertain whether RHP Chad Gaudin will be able to start Tuesdayin Los Angeles after he took a line drive off his pitching elbowin his last start. ... Madison Bumgarner (7-4) will start theseries opener against the Dodgers versus Hyun-Jin Ryu (6-3). ...The Marlins are off Monday before beginning a two-game homeseries Tuesday against Minnesota.

The activities offered by advertising links to other sites, may be deemed an illegal activity in certain jurisdictions and are void when prohibited. The viewer is specifically warned that they should make their own inquiry into the legality of participating in any of these games and/or activities. The owner of the web sites assumes no responsibility for the actions by and makes no representation or endorsement of any of these games and/or activities if they are illegal in the jurisdiction of the reader or client of this site.