A one-time Adidas fixer whose testimony helped convict former footwear execs for their role in the NCAA corruption scandal was sentenced to time served Tuesday — even though he didn’t actually spend any time in jail.

Manhattan federal court Judge Lewis Kaplan called Thomas Gassnola’s cooperation “essential” in bringing down ex-Adidas bigwig James Gatto, consultant Merl Code Jr. and runner Christian Dawkins.

“The sentence reflects the considerable value of Mr. Gassnola’s cooperation,” Kaplan said after handing down the sentence of time served, even though the 47-year-old had faced up to 20 years behind bars — and spent no time in jail prior to his guilty plea.

Kaplan also ordered that the hulking shoe stoolie cough up $342,437.75 in restitution, plus serve two months of home detention — where he can still leave for work and medical appointments — as ordered by pretrial services.

Gassnola testified against Gatto, Code and Dawkins at their wire fraud trial last year, saying he and others took part in a scheme to divert amateur student athletes bound for the NCAA into schools sponsored by Adidas by paying off family members.

The trio were convicted, with Kaplan sentencing Gatto to nine months behind bars, and Code and Dawkins to six months.

Gassnola declined comment as he left court.