Costs in the action shall be fixed and allowed by the court and shall include a reasonable attorney’s fee, interest, penalties and other charges or advances authorized by this division, including reasonable administrative costs incurred by the city in pursuing the foreclosure, and when so fixed and allowed by the court the costs shall be included in the judgment.