The costs of all advertisements of property to be sold under tax execution by a sheriff, or tax collector or tax commissioner acting as an ex officio sheriff, when such advertisements are required by law shall be an additional cost of the execution to be satisfied voluntarily by the defendant or by levy and sale of the property.