Shawn Hogan Wikimedia, CC Shawn Hogan, the CEO of a successful online marketing company called Digital Point Solutions, was sentenced to five months in federal prison for his role in defrauding eBay of an alleged $28 million in online marketing fees.

He must remain on three years' probation after that, and was fined $25,000. Hogan will enter prison on July 14, according to federal court records. Hogan previously reached a civil settlement with eBay also.

The sentence brings to a close one of the strangest chapters in eBay's history.

Affiliate marketers are people who drive traffic to eBay and take a cut when the traffic results in a sale. eBay had secretly cooperated with the FBI since June 2006 to root out affiliate marketers whose success was a bit too good to be true. eBay had even created an online sting operation, called "Trip Wire," to monitor the traffic Hogan was sending.

eBay initially alleged that Hogan had rigged eBay's system so that it falsely credited him for sales he did not generate. He did it by seeding unknowing users with hundreds of thousands of bits of tracking code, or "cookies." If any of those people bought something on eBay, the code signaled to eBay that Hogan should get a cut of the sale — even though he had done nothing to promote eBay.

The sting also netted Brian Dunning, eBay's second biggest affiliate marketer. The company had paid Hogan and Dunning a combined $35 million in commissions over the years, court papers say. Both men pleaded guilty to wire fraud. Dunning's sentencing is later this year.

In his defense, Hogan had alleged that eBay had known about how he developed traffic for the site for years, and even encouraged him to keep doing it. The company once wined and dined him at an expensive Las Vegas restaurant, and offered him credit for private jet flights, he has said. But no evidence of wrongdoing by any eBay employee was produced in the case.

Before he was indicted, Hogan had become the No. 1 affiliate marketer at eBay out of an army of 26,000 others. He was also ranked No. 2 among Google's AdSense partners in 2013.