BALTIMORE (AP) — Mark Trumbo breathed some life into the Baltimore Orioles’ postseason hopes.

Trumbo led off the 12th inning with his major league-leading 44th home run, and the Orioles rallied from a late two-run deficit to beat the Arizona Diamondbacks 3-2 on Friday night.

After getting swept in a four-game series by Boston, the Orioles remained a half-game behind Detroit for the AL’s second wild card.

“This is the type of game you definitely want to win because it can be a real gut punch if it goes the other way,” Trumbo said.

Baltimore trailed 2-0 before Pedro Alvarez homered in the eighth off Enrique Burgos and Matt Wieters homered against Daniel Hudson leading off the ninth.

Oliver Drake (1-0) pitched a scoreless 12th for his first big league win. Matt Koch (1-1) relieved to start the bottom half and Trumbo sent his first pitch over the left-field fence, setting off a celebration. It was Baltimore’s sixth walk-off home run this season.

“They did a great job of battling back and tying the game and we did a great job of stopping them from winning the game a couple of times,” Rockies manager Chip Hale said. “We had some great plays. We left a ball up there in the middle of the plate for Trumbo and we know what he can do with it. We’ve seen it before.”

Baltimore, which stranded 14 runners, nearly won the game in the ninth. J.J. Hardy tried to score from second on Adam Jones’ single but was called out after the throw from left fielder Brandon Drury to catcher Welington Castillo, a play upheld by video review.

“I thought he was safe,” Orioles manager Buck Showalter said. “The only thing they could have possibly said that they weren’t sure J.J. got there. The guy tagged him with the glove and had the ball in his throwing hand. You’ve got to help me with that one. I’m sure you all saw the same thing we did. Another head-shaker. We’ve had quite a few of them this year.”

Arizona built a lead against Yovani Gallardo on RBI doubles by Jake Lamb in the first and Jean Segura in the second. Gallardo has allowed 22 runs in the first inning this season.

“You never want to have a start in that way, giving up a run in the first, giving up a run in each of the first two innings,” Gallardo said. “It’s going to happen.”

Arizona’s Shelby Miller allowed just three hits in six innings and remained winless since June 20.

“Against a lineup like that, in a tough ballpark to pitch in, it’s always tough to throw zeroes,” Miller said. “And to get a good outing like that against that team . really the biggest thing was we made a lot of good plays on defense.

DOMINANT BULLPEN

Six Orioles relievers — Darren O’Day, Brad Brach, Mychal Givens, Zach Britton, Tommy Hunter and Oliver Drake — each threw one scoreless inning.

TRAINER’S ROOM

Diamondbacks: RHP Zack Greinke did not travel with the team because of shoulder stiffness. He is expected to have an MRI.

Orioles: RHP Kevin Gausman will likely start Tuesday or Wednesday in Toronto after being pushed back because of soreness in an oblique.

UP NEXT

Diamondbacks: RHP Robbie Ray (8-13, 4.66 ERA), scheduled to start Saturday, entered the weekend fifth in the NL with 210 strikeouts. He is making his first career start against Baltimore.

Orioles: LHP Wade Miley (8-13, 5.65 ERA) returns after leaving in the fifth inning Sept. 18 against Boston with a strained back muscle. Miley, selected by Arizona in the first round of the 2008 amateur draft, is facing his former team for the first time.

WASHINGTON (AP) — The Latest on the U.S. presidential election campaign (all times EDT):

10:50 p.m.

Donald Trump’s campaign is planning for what it says will amount to $140 million worth of advertising from now until Election Day.

Senior communications adviser Jason Miller says the total, if executed, would include $100 million in television airtime and $40 million worth of digital ads.

He said $15 million of the buy was placed Friday.

The television purchase is expected to include $60 million on local stations and another $40 million in national airtime.

The campaign is targeting key battleground states like Florida, North Carolina, Ohio and Pennsylvania, along with Michigan, Maine, New Mexico, Wisconsin and others.

———

9:50 p.m.

Hillary Clinton’s campaign says she has decided to postpone her planned trip to Charlotte, North Carolina, on Sunday after hearing from community leaders.

Clinton announced earlier Friday that she would travel to Charlotte in the aftermath of the shooting of a black man by a Charlotte police officer.

But Clinton’s campaign now says that after further discussions with community leaders, the Democratic presidential nominee will postpone the trip to avoid straining the city’s resources.

Clinton’s decision came after Charlotte Mayor Jennifer Roberts told CNN that Clinton should postpone her visit because the city’s security resources were stretched thin.

Clinton now plans to visit Charlotte on Sunday, October 2.

———

9:20 p.m.

Benjamin Netanyahu’s office says the Israeli prime minister will meet separately with presidential candidates Hillary Clinton and Donald Trump on Sunday.

The Israeli Embassy declines to say where the meetings will take place.

Netanyahu has been in New York City over the last week for the U.N. General Assembly meeting. He met Wednesday evening with President Barack Obama in what is likely to be their last sit-down before Obama leaves office in January.

Clinton and Trump each met Monday with Egyptian President Abdel-Fattah el-Sissi in New York. Clinton also met with the leaders of Japan and Ukraine.

———

9 p.m.

The mayor of Charlotte is urging Hillary Clinton to postpone her announced visit to the embattled North Carolina city.

Mayor Jennifer Roberts tells CNN that the Democratic presidential nominee should hold off coming to Charlotte after days of protest following the shooting of a black man by police.

Clinton’s campaign said earlier Friday that she would travel to Charlotte on Sunday, one day before her first high-profile debate with Republican Donald Trump.

But Roberts, a Democrat, says Charlotte’s security resources are “very stretched,” and is asking both candidates to give Charlotte “a chance to get our city back to order” before visiting.

——

5:10 p.m.

Hillary Clinton says the police video of the shooting of Keith Lamont Scott in Charlotte, North Carolina, should be released “without delay.”

The Democratic presidential candidate plans to travel to the city on Sunday ahead of her first debate with Donald Trump.

Clinton says on Twitter that authorities should release the video of the shooting of the black man by Charlotte police. She says, “We must ensure justice & work to bridge divides.”

Her campaign says Clinton will travel to Charlotte one day before her high-profile debate with Trump, her Republican opponent.

A video recorded by Scott’s wife was released Friday by his family and does not indicate whether Scott had a gun. Police have said he was armed by witnesses say he held only a book.

———

4:45 p.m.

Democratic vice presidential nominee Tim Kaine says he never would have supported someone who treated his father the way Donald Trump treated Sen. Ted Cruz’s father.

Kaine said he was “not completely surprised” that Cruz endorsed the Republican presidential candidate Friday after several months of holding out.

But Kaine also expressed disbelief that, during the Republican primary, Trump had falsely suggested Cruz’s father was involved in the assassination of President John F. Kennedy.

Kaine said: “If somebody said that about my dad, they would never have me as a supporter for anything.”

Kaine made the remarks Friday in Austin, Texas, at a news conference with Latino elected officials.

———

4:30 p.m.

Donald Trump says that he’s “greatly honored” by what he describes as Sen. Ted Cruz’s endorsement.

After months of refusing to do so, Cruz announced Friday he would vote for Trump, though he did not describe it as an endorsement.

Trump said in a statement that he and Cruz “have fought the battle” and called Cruz a “tough and brilliant opponent.”

After Cruz had refused to endorse Trump at the Republican National Convention, Trump had declared that he would never accept the Texan’s backing.

Trump said: “He’ll come and endorse, it’s because he has no choice. But I don’t want his endorsement.”

He added then: “Ted, stay home. Relax.”

———

3:40 p.m.

Ted Cruz says he’s voting for Donald Trump for president — a shocking about-face after he rocked the Republican convention by dramatically refusing to do so.

The Texas senator says on Facebook that he made the decision for two reasons. First, his promise to support the Republican nominee. And second, his belief that Democrat Hillary Clinton is “wholly unacceptable.”

The flip-flop was a stunner since the Texan was booed lustily during a floor speech at his party’s convention for urging Republicans to “vote your conscience” without naming Trump.

Cruz finished second to Trump in a bitter primary and for months balked in offering support, despite his previous pledge to endorse the eventual Republican nominee.

Polls have since suggested that Cruz’s popularity was slipping nationally and back home in Texas, where he could face a primary challenger for re-election in 2018.

———

3:25 p.m.

Hillary Clinton’s campaign is getting a jump on fact-checking Donald Trump’s debate performance.

On a conference call with reporters Friday, Clinton communications director Jennifer Palmieri laid out what they are calling Trump’s “seven deadly lies.” Palmieri said there should be heightened scrutiny at the first general election debate Monday because “his level of lying is unprecedented in American politics.”

The first item on the list is Trump’s false statement that he opposed the war in Iraq. Palmieri said that letting false statements go unquestioned would give Trump an “unfair advantage.” She said the campaign expects the debate moderator to “call out those lies and to do so in real time.”

Palmieri declined to say who is playing Trump in their debate preparations.

———

2:45 p.m.

Hillary Clinton is breaking with President Barack Obama and backing legislation that would allow families of Sept. 11 victims to sue the government of Saudi Arabia for any role in the attack.

The Democratic presidential candidate would sign the bill if she were president. That’s according to a spokesman, Jesse Lehrich.

He said Friday that Clinton continues to support efforts to “hold accountable those responsible” for the attacks.

Obama is expected to veto the bill later Friday. He says it would undermine already-strained diplomatic relations with a critical U.S. ally.

Congressional leaders say they have the voters to override Obama’s veto.

———

1 p.m.

In the final sprint to Election Day, Donald Trump faces a daunting series of roadblocks in the minds of Americans as he tries to catch up to Hillary Clinton.

That’s according to a new Associated Press-GfK poll that finds that more than half the country fears a Trump presidency. Only about third of Americans believe he is at least somewhat qualified to serve in the White House.

Moreover, most voters oppose the hard-line approach to immigration that is the centerpiece of the billionaire businessman’s campaign.

While Trump undoubtedly has a passionate base of supporters, most voters don’t share their fervor. Only 29 percent of registered voters would be excited and just 24 percent would be proud should Trump prevail in November.

———

12 p.m.

Democratic vice presidential candidate Tim Kaine is highlighting some of Donald Trump’s provocative statements about women, the same day Hillary Clinton’s campaign released television ads doing the same.

Speaking at a rally at a union hall in Houston, Kaine said Trump has a troubling history of calling women “fat pigs” and “dogs.”

The Clinton campaign’s new ad shows girls and women looking in the mirror as audio plays of Trump making insulting comments about women.

Kaine also criticized Trump’s campaign for selling buttons on its website that say “Hillary for prison.” Kaine said Trump’s history of name-calling will likely be on display during Monday’s first presidential debate.

Kaine said: “They name-call her because that’s all they got folks.”

———

11:50 a.m.

Tim Kaine is warning those considering voting for Libertarian Gary Johnson as a form of protest that their decision could have “deeply troubling” consequences.

The Democratic vice presidential candidate says votes for third-party candidates have been costly. Kaine said if Ralph Nader hadn’t pulled away votes from Al Gore in the 2000 election, then the U.S. “probably wouldn’t have had a war in Iraq.” He spoke in an interview with Katie Couric for Yahoo News posted online Friday.

Kaine said “everybody knows” that Johnson won’t win, but supporting him could help Republican presidential nominee Donald Trump.

Kaine said that “casting a vote, a protest vote for a third-party candidate that’s going to lose may well affect the outcome, and may well lead to a consequence that is deeply, deeply troubling.”

———

11:45 a.m.

Bruce Springsteen says Donald Trump’s presidential campaign is a “great embarrassment” for Americans.

The Boss shared his thoughts on the Republican candidate as a guest on Swedish-Norwegian talk show “Skavlan.”

In an excerpt of the program posted online by Swedish newspaper Dagens Nyheter on Friday, Springsteen said he understands why people who have struggled to make ends meet could find some of Trump’s arguments compelling.

Commenting on Trump’s chances, he said “the absurdity is beyond cartoon-like. But he’s gotten close enough so it can make you nervous. I don’t think he’s going to win, but even him running is a great embarrassment if you’re an American.”

Hosted by Norwegian TV personality Fredrik Skavlan, the talk show is produced jointly for public service broadcasters SVT of Sweden and NRK of Norway.

———

11:35 a.m.

Donald Trump has added 10 names to the list of people he says he’ll choose from to fill Supreme Court vacancies.

Among the names on the list to be released Friday: Utah Sen. Mike Lee, who notably has yet to endorse the Republican nominee.

The list adds several minority judges to Trump’s list. Nine of the 10 new names are men. The list was first reported by NBC.

Trump in May unveiled a list of 11 federal and state court judges as potential replacements for the late Justice Antonin Scalia.

Trump has wavered in the language he’s used to describe the list. At times, he’s said he would pick directly from it. At others, he’s said the people he would nominate would share similar qualities to those on the list.

———

7:30 a.m.

President Barack Obama says it would good for Donald Trump to visit the Smithsonian Institution’s new National Museum of African American History and Culture that is opening this weekend.

Obama was disputing the Republican presidential candidate’s assertion that “African-American communities are absolutely in the worst shape that they have ever been in before.”

In an interview broadcast Friday on ABC’s “Good Morning America,” Obama said: “I think even most 8-year-olds would tell you that whole slavery thing wasn’t very good for black people. Jim Crow wasn’t very good for black people.”

When asked what advice he would give Hillary Clinton ahead of Monday’s debate with Trump, Obama said she should be herself and explain what motivates her.

He said: “She’s in this for the right reasons.”

———

6:00 a.m.

Hillary Clinton’s campaign is releasing a new television ad that rehashes some of Donald Trump’s most provocative statements about women in the past.

The 30-second ad shows young girls and women looking in the mirror as they hear Trump describe various women as “fat,” a “slob” and one who “ate like a pig.”

It ends with the tag line: “Is this the president we want for our daughters?” It’s the latest attempt by her campaign to use Trump’s words against him and is similar to ads aimed at voters in battleground states, including veterans and people with disabilities.

Clinton’s campaign plans to run the ad in Ohio, New Hampshire, Iowa, Florida, Nevada, North Carolina, Pennsylvania and on national cable.

3:30 a.m.

Republican presidential candidate Donald Trump is seeking to show law-and-order toughness along with empathy for African-Americans as he criticizes violent protests stemming from another fatal police shooting of a black man.

His Democratic opponent, Hillary Clinton, was behind closed doors as she prepared for their initial debate and did not address on Thursday the escalating racial tensions in Charlotte, North Carolina. The city was under a midnight curfew after two previous nights of chaotic protests that led to one death as well as injuries, arrests and vandalism.

Trump has spent the last several weeks asking black Americans for their support and asserting that President Barack Obama has failed the black community, but those appeals have been undermined at times. On Thursday, the Trump campaign accepted the resignation of an Ohio volunteer, Mahoning County chair Kathy Miller, who told the Guardian newspaper, “I don’t think there was any racism until Obama got elected.”

A look at what’s happening all around the majors Saturday:

———

WINNERS AT WRIGLEY

The Cubs can set a team record with their 57th home victory when they host the Cardinals at Wrigley Field. Jason Hammel (15-9, 3.56) is trying to prove himself worthy of a postseason rotation spot for the NL Central champs, though he hasn’t helped himself with a 6.87 ERA in three starts this month. Rookie Alex Reyes (3-1, 1.03) gets his fourth start for St. Louis riding a scoreless streak of 11 1/3 innings.

RICK’S ROLL

Rick Porcello (21-4, 3.08) can become baseball’s second 22-game winner in the past five years when Boston plays at Tampa Bay. Jake Arrieta won 22 games while earning the NL Cy Young Award last season, making him baseball’s biggest winner since Justin Verlander won 24 times with Detroit in 2011. Porcello likely only has two starts left, so Verlander’s mark is out of reach, but that win total combined with his late-season dominance — he’s 7-2 with a 2.38 ERA since Aug. 1 — could give him an edge in the AL Cy Young race.

BUILDING UP

Clayton Kershaw (11-3, 1.73) tries to stretch out even more before the postseason when the Dodgers face the Rockies. Kershaw was limited to 66 and 64 pitches in his first two starts after returning from the disabled list, then jumped up to 88 pitches in a 2-1 win over the Giants in his last start. Despite missing more than two months, Kershaw (6.1) entered Friday trailing only Jose Fernandez (6.2) in wins above replacement, per Fangraphs .

RIGHT THAT RANGER

The Rangers hope to get Yu Darvish on track in a game against Oakland before beginning what they hope is a deep postseason run. Darvish (5-5, 3.81) has a 7.47 ERA in his past three starts, including when he allowed seven runs over five innings last time out against the A’s. Darvish is stumbling at the end of a season that included his successful return from Tommy John surgery, though Texas is just 8-7 this season with their Japanese ace on the mound.

SEARAGE’S LATEST STAR

Ivan Nova starts vs. Washington looking like yet another success story for Pirates pitching coach Ray Searage. After going 7-6 with a 4.90 ERA with the Yankees this season, Nova is 5-1 with a 2.93 ERA in nine starts with the Pirates following a trade Aug. 1. Nova has just three walks in 55 1/3 innings with Pittsburgh, helping him produce a video game-like 15.00 strikeout-to-walk ratio.

GIANT STRUGGLES

Madison Bumgarner (14-9, 2.57) leads San Francisco against the pesky Padres, who had beaten the Giants six straight times before losing 2-1 on Thursday night. Bumgarner is coming off a dominant start against the Dodgers, when he threw seven scoreless innings of one-hit ball in a 2-1 loss. In his six starts previous to that one, Bumgarner had struggled to a 5.30 ERA.

NEW YORK (AP) — Stocks that moved substantially or traded heavily Friday:

Yahoo Inc., down $1.35 to $42.80

The company said hackers stole information from at least 500 million accounts.

Facebook Inc., down $2.12 to $127.96

The social network apologized to advertisers for what it calls an error that overstated the average length of time users watched videos on its site.

Endo International PLC, up $3.13 to $23.39

Endo named Paul Campanelli, the head of its generic drug unit, as its new CEO, replacing Rajiv De Silva.

Oshkosh Corp., down $6.02 to $50.88

The heavy vehicle manufacturer raised its current-year forecasts, but investors were disappointed with its projections for the next fiscal year.

Houghton Mifflin Harcourt Co., down $1.63 to $13.26

The book publisher said CEO Linda Zecher resigned.

AAR Corp., up 65 cents to $29.66

The airplane maintenance company reported quarterly results that were stronger than analysts expected.

Oracle Corp., down 28 cents to $39.23

After big gains recently, technology stocks pulled the market lower on Friday.

Kinder Morgan Inc., down 17 cents to $21.94

Energy companies including the pipeline operator rose as oil prices moved higher.

NEW YORK (AP) — U.S. stock indexes closed moderately lower on Friday following three days of gains. Several technology stocks traded heavily, including Yahoo, Twitter and Facebook. Energy stocks fell along with a steep decline in the price of oil.

The Dow Jones industrial average lost 131.01 points, or 0.7 percent, to 18,261.45. The Standard & Poor’s 500 index lost 12.49 points, or 0.6 percent, to 2,164.69 and the Nasdaq composite index lost 33.78, or 0.6 percent, to 5,305.75.

Stocks posted solid gains this week, with the S&P 500 up 1.2 percent, as investors were relieved that the Federal Reserve decided to keep rates at their current low level. The next time the Fed could raise rates is November, but the general impression among investors is the central bank will not raise rates until December, long after the general election.

“As much as market fundamentals matter, the Fed and its decisions continue to dominate markets,” said Kristina Hooper, head of U.S. investment strategies at Allianz Global Investors.

Several technology stocks made big moves as investors worked through company-specific news on Facebook, Twitter and Yahoo.

Facebook fell $2.12, or 1.6 percent, to $127.96 after The Wall Street Journal reported that the company was overstating how long users were watching video ads, raising concerns that a portion of Facebook’s ad revenue may be at risk.

Yahoo fell $1.35, or 3.1 percent, to $42.80 after the company admitted the data of 500 million users was stolen by a foreign agent, much more than it previously acknowledged. While Yahoo has previously agreed to sell most of its assets to Verizon, there were concerns that this development may cause Verizon to go back to the negotiation table.

Twitter soared $3.99, or 21 percent, to $22.62 after business network CNBC reported that the company is in deal talks with Salesforce and Google’s parent company Alphabet for a possible sale.

While stocks rose solidly this week, most of the gains were in relatively safe, dividend-rich companies that investors favor when they’re uncertain about the economy. The Dow Jones utility index was up 3.3 percent this week, and the newly created real estate component of the S&P 500, made up of mostly real estate investment trusts, rose 4.3 percent.

Oil prices fell sharply after reports that Saudi Arabia was unable to reach an agreement with Iran to cut production. U.S. benchmark crude oil futures closed down $1.84 to $44.48 a barrel on the New York Mercantile Exchange. Brent crude, used to price international oils, fell $1.76 to $45.89 a barrel.

In other energy trading, heating oil fell 5 cents to $1.41 per gallon, wholesale gasoline fell 2 cents to $1.38 a gallon and natural gas fell 3.5 cents to $2.955 per thousand cubic feet.

Energy companies were hit hard on the reports, and the energy component of the S&P 500 lost 1.3 percent, much more than the broader market. Transocean, the ocean rig operator, fell 55 cents, or 6 percent, to $9.10.

In metals, gold fell $3.00 to $1,341.70 an ounce, silver fell 29 cents to $19.81 an ounce and copper rose less than 1 cent to $2.201 a pound.

The yield on the U.S. Treasury 10-year note was little changed at 1.62 percent. The euro rose to $1.1231 from $1.204 and the dollar edged up to 101.09 yen from 100.89 yen.

SAN FRANCISCO (AP) — Facebook is apologizing to advertisers for what it calls an error that overstated the average length of time users watched videos on the site.

The measurement didn’t affect how much Facebook charges to run video spots, but analysts say ad agencies may have used the Facebook estimates as a key metric when they plan campaigns and decide how much advertising to place on Facebook or competing sites.

Facebook executive David Fischer said his company recently discovered its method of calculating the average viewing time didn’t include times when people watched a video for less than three seconds. That had the effect of making average times seem longer.

Fischer said Facebook has corrected the error, but analysts say it underscores the need for independent verification of such advertising metrics.