When any such advertisement shall be made by a public officer, thereunto authorized by law, the reasonable expense thereof shall be allowed and paid out of the county treasury, as other demands and charges of a like nature.