 I don't think this means that God is like a vending machine. Just because you ask God for something doesn't mean you will get that exact thing from God. But it does mean that the act of asking is important in and of itself, because God promises to hear us.