You get the behaviour you reward
I first learned this lesson from a puppy trainer when we first got Jemby, our Golden Retriever: you get the behaviour you reward.
Give your puppy attention when it barks, sleeps on your bed or jumps up on people, and it will repeat that behaviour.