Gary Johnson will abandon his bid to become the presidential nominee of the Republican Party and seek the Libertarian Party nomination instead, the AP reported.

The former New Mexico governor's campaign has gained scant traction. And Johnson's low polling numbers have locked him out of all but 2 Republican debates.

Johnson will announce his decision at a news conference on December 28 at the Capitol building in Santa Fe, New Mexico.

“He is representing a viewpoint and a viewpoint that needs to be heard and he's going to do whatever it takes to get that done,” Joe Hunter, a spokesman for Johnson, told the AP.

Johnson endorsed gay marriage earlier this month during an online town hall with Jimmy LaSalvia, co-founder and executive director of gay GOP group GOProud. Johnson previously supported civil unions for gay and lesbian couples.

He recently told gay glossy The Advocate that the anti-gay rhetoric of some candidates in his party played a part in his decision to reconsider his membership.

“I've been in the Republican Party my entire life,” Johnson told the magazine. “And I don't feel like I'm leaving the Republican Party as much as the party is leaving me.”

“I don't think I'm different than a lot of Americans, in that when you grow up, there's a negative prejudice built against gays. You're just bombarded by it,” Johnson said. “And then, in my life, I've come to find out that I have friends who are gay. And it makes me feel horrible that I would in any way potentially add to discrimination against them. Every single candidate talks about equality, freedom, liberty: Doesn't that all start with a person's right to conduct their own lives as they see fit?”