O'Malley squeaks into next Dem debate
© Getty Images

Martin O'Malley has squeaked into this Sunday night's NBC News/YouTube Democratic presidential debate after poor poll numbers put his status in doubt.

NBC News announced Thursday that the former Maryland governor will join Hillary ClintonHillary Diane Rodham ClintonStopping Robert Mueller to protect us all Hillary Clinton hits Trump, pulls out Russian hat during Yale speech Giuliani: Mueller plans to wrap up Trump obstruction probe by Sept. 1 MORE and Sen. Bernie SandersBernard (Bernie) SandersHarvard law professor: Impeachment could worsen political dysfunction, polarization Gun control debate shifts to hardening schools after Texas shooting Bernie Sanders: NRA to blame for lack of action on gun control MORE (I-Vt.) on stage in South Carolina.

O'Malley needed to hit 5 percent in averages of qualifying national polls or those from Iowa or New Hampshire. From the moment the network announced the criteria last week, it became clear that his only avenue would be Iowa.

In tweets from their campaign staffs, Clinton and Sanders both called for O'Malley to be included in the debate hours after the criteria was announced.

NBC's press release did not specify which polls it considered as the five most recent in Iowa, as O'Malley appears to have just barely made it past that threshold. NBC told The Hill last week that it would round up from 4.5 percent if necessary.

In the four most recent qualifying Iowa polls — Quinnipiac University, NBC/Wall Street Journal/Marist, Des Moines Register/Bloomberg Politics, and Fox News — O'Malley averaged exactly 4.5 percent. But there was a tie for the fifth most recent poll, as a Loras College poll and another Quinnipiac poll were both released on Dec. 15. Including the Loras poll's 4 percent would have put O'Malley at 4.4 percent, while including the Quinnipiac poll's 6 percent would put him above the threshold.

Missing the debate stage would have been a blow to the O'Malley campaign, which has struggled to gain traction as the progressive alternative to Clinton. National polls as well as early state surveys suggest a two-person race between Clinton and Sanders, with O'Malley polling far below the pair.

—This report was updated at 12:34 p.m.