The self-regulatory draft code for putting an end to unethical marketing practices by pharma companies, formulated by the government, will be made mandatory if not adhered to by companies.