A new system restricting the advertising of certain foods in children's programming in New Zealand is to be phased in from 1 July.