In one case, prosecutors said, he bought “personal advertising messages” with money donated to his campaign account. An advertising company also gave him free advertising so the company would avoid “losing” a city bus bench contract, according to the Miami-Dade State Attorney’s Office.

Rosner, 52, is charged with a slew of felony and misdemeanor counts, including unlawful compensation for official behavior, grand theft and falsely reporting campaign expenditures.

The case stems from complaints filed with the Florida Elections Commission last year by blogger Stephanie Kienzle, who has filed other complaints against Rosner on separate issues with state and county ethics agencies.

The criminal case was investigated by Miami-Dade police, the ethics commission and prosecutors.

Rosner was unseated in 2011 by political newcomer and citizen activist George Vallejo.