Mookie Betts homered for the first time at Dodger Stadium, and Max Muncy, Will Smith and Edwin Ríos went deep to help Los Angeles defeat the San Francisco Giants 7-2 on Friday night.

The Dodgers have won three in a row and eight of 10.

More Images
San Francisco Giants' Mike Yastrzemski, left, scores under the tag of Los Angeles Dodgers catcher Will Smith on a single by Donovan Solano during the third inning of a baseball game Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Mookie Betts homered for the first time at Dodger Stadium, and Max Muncy, Will Smith and Edwin Ríos went deep to help Los Angeles defeat the San Francisco Giants 7-2 on Friday night.

Los Angeles Dodgers' Max Muncy gestures prior to scoring after hitting a solo home run during the fourth inning of a baseball game against the San Francisco Giants Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

The Dodgers pummeled Jeff Samardzija in the fourth. Muncy homered to the right-field pavilion leading off. Smith slugged his second homer of the season — both against the Giants — that eluded a leaping Darin Ruf in left field, extending the lead to 5-1.

Los Angeles Dodgers starting pitcher Julio Urias throws to the plate during the first inning of a baseball game against the San Francisco Giants Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Samardzija (0-2) struggled again in the fifth, giving up a leadoff walk to Cody Bellinger before hitting Turner and Kiké Hernández to load the bases with no outs. Sam Selman replaced Samardzija, who was charged with the run when Bellinger scored on Chris Taylor's fielder's choice groundout to third.

San Francisco Giants starting pitcher Jeff Samardzija throws to the plate during the first inning of a baseball game against the Los Angeles Dodgers Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Dodgers starter Julio Urías allowed one run and three hits in four innings. He struck out two and walked two. Jake McGee retired the side in order in the ninth.

Los Angeles Dodgers shortstop Corey Seager can't reach a ball hit for a single by San Francisco Giants' Chadwick Tromp during the second inning of a baseball game Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Giants: Manager Gabe Kapler traded text messages with OF prospect Hunter Bishop, who is eager to get going at the club’s alternate site in Sacramento after being delayed because of a positive test for the coronavirus. “Bishop is chomping at the bit,” Kapler said of the 10th overall draft pick last year. ... LHP Drew Smyly, on the IL with an index finger strain in his throwing hand, was examined by hand specialist Dr. Scott Hansen and is progressing well. Smyly will be re-evaluated after the current 10-game trip. ... RHP Reyes Moronta (shoulder strain) will begin a throwing program at Sacramento.

Betts was back in the lineup for the first time since injuring his left middle finger last Sunday in Phoenix. He didn’t waste any time, doubling in his first at-bat. He homered into the left-field pavilion in the third, tying the game 1-all. Two batters later, Justin Turner's RBI single gave Los Angeles the lead for good, 2-1.

San Francisco Giants' Mike Yastrzemski, left, scores under the tag of Los Angeles Dodgers catcher Will Smith on a single by Donovan Solano during the third inning of a baseball game Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

San Francisco Giants' Mike Yastrzemski, left, scores under the tag of Los Angeles Dodgers catcher Will Smith on a single by Donovan Solano during the third inning of a baseball game Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

The Dodgers pummeled Jeff Samardzija in the fourth. Muncy homered to the right-field pavilion leading off. Smith slugged his second homer of the season — both against the Giants — that eluded a leaping Darin Ruf in left field, extending the lead to 5-1.

Los Angeles has homered in 12 of its first 14 games.

Ríos homered into the Giants' bullpen leading off the eighth against Wandy Peralta, making it 7-2.

Los Angeles Dodgers' Max Muncy gestures prior to scoring after hitting a solo home run during the fourth inning of a baseball game against the San Francisco Giants Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Los Angeles Dodgers' Max Muncy gestures prior to scoring after hitting a solo home run during the fourth inning of a baseball game against the San Francisco Giants Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Samardzija (0-2) struggled again in the fifth, giving up a leadoff walk to Cody Bellinger before hitting Turner and Kiké Hernández to load the bases with no outs. Sam Selman replaced Samardzija, who was charged with the run when Bellinger scored on Chris Taylor's fielder's choice groundout to third.

Samardzija gave up six runs (five earned) and seven hits in four innings. He struck out three and walked two. The right-hander’s ERA ballooned to 9.88.

Dylan Floro (1-0) got the victory, giving up one hit in one inning with two strikeouts.

Los Angeles Dodgers starting pitcher Julio Urias throws to the plate during the first inning of a baseball game against the San Francisco Giants Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Los Angeles Dodgers starting pitcher Julio Urias throws to the plate during the first inning of a baseball game against the San Francisco Giants Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Dodgers starter Julio Urías allowed one run and three hits in four innings. He struck out two and walked two. Jake McGee retired the side in order in the ninth.

The Giants' runs came on Donovan Solano's RBI single in the third and Wilmer Flores' homer that struck a female cardboard cutout's face in left field in the sixth.

TRAINER’S ROOM

San Francisco Giants starting pitcher Jeff Samardzija throws to the plate during the first inning of a baseball game against the Los Angeles Dodgers Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

San Francisco Giants starting pitcher Jeff Samardzija throws to the plate during the first inning of a baseball game against the Los Angeles Dodgers Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Giants: Manager Gabe Kapler traded text messages with OF prospect Hunter Bishop, who is eager to get going at the club’s alternate site in Sacramento after being delayed because of a positive test for the coronavirus. “Bishop is chomping at the bit,” Kapler said of the 10th overall draft pick last year. ... LHP Drew Smyly, on the IL with an index finger strain in his throwing hand, was examined by hand specialist Dr. Scott Hansen and is progressing well. Smyly will be re-evaluated after the current 10-game trip. ... RHP Reyes Moronta (shoulder strain) will begin a throwing program at Sacramento.

Dodgers: SS Corey Seager left the game in the third with low back discomfort. He was already bothered by quad tightness.

RUF ONE

Los Angeles Dodgers shortstop Corey Seager can't reach a ball hit for a single by San Francisco Giants' Chadwick Tromp during the second inning of a baseball game Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

Los Angeles Dodgers shortstop Corey Seager can't reach a ball hit for a single by San Francisco Giants' Chadwick Tromp during the second inning of a baseball game Friday, Aug. 7, 2020, in Los Angeles. (AP PhotoMark J. Terrill)

The Giants committed their MLB-leading 18th error in the third. A ball hit by Bellinger took a weird bounce just out of left fielder Ruf's reach and he had to chase the ball down, giving Bellinger time to take second on the miscue.

KELLY'S AIM

Dodgers reliever Joe Kelly, appealing an eight-game suspension for throwing at multiple Houston Astros players, struck home plate umpire Jim Reynolds in the left shoulder in the eighth. Catcher Will Smith never got his glove up to grab the ball. Reynolds winced and then walked out to Kelly with a new ball.

OUCH

Turner was hit by a pitch in the fifth, making him the Dodgers' career leader with 75.

ON THE ROAD AGAIN

As a precaution, Giants OF Steven Duggar and RHP Andrew Triggs opted to drive separately in rental cars from Los Angeles to report to Sacramento rather than receive a ride from a professional driver.

AP Baseball Writer Janie McCauley in San Francisco contributed to this report.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports