In addition, you will also need to create the appropriate route map and apply this to the neighbor.
Also bear in mind that an import policy on the neighbor can prevent routes from being learned as well.
[ScreenOS] BGP configuration to restrict the routes being advertised to any BGP neighbor
https://kb.juniper.net/InfoCenter/index?page=content&id=KB23528