I haven't had a puppy in a longgggg time, but, typically, they want to play, and want your attention. It isn't necessarily about a place. A firm no, and emphatically ignoring for a short while has always worked for me.
Anything you make a big production of, or dramatize, becomes part of the game. Alot of the dogs with separation anxiety were taught that by owners who made a big fuss about leaving them, and made the simple act of coming home a grand event. Usually, with Princess Poof, when we leave in the morning, my son simply sets the home alarm, says "nap time", she runs to her crate, he kisses her nose, and shuts her door. Tells her he'll see her later, and we leave. 30 seconds on the alarm
Then, when we come home, again, 30 seconds to shut down the alarm, he walks in, opens her door, says something to her.. usually Hey Poof! Then, opens her cage, she runs out the door to potty. He shuts down the alarm. She comes back to the porch to come in, and THEN he makes a HUGE fuss over her.
The dog before my bulldog was an Afghan hound. Polar opposite, but she was my only CHILD. I spoiled her rotten, and taught her alot of bad habits. One of them was that the crate was a time out. A bad place. She barked EVERY time I left her in it. Whether it was at night, or for work. I spent over a year unteaching that. I learned alot of lessons. One very important thing I learned with dogs and children, the child has to be in charge. They are the ones that dominance issues typically arise against. They are naturally the weakest human. And dogs sense that. It's way too easy for a dog to think it's place in the pack is above a child, especially if you spoil it, and treat it like one. I'm not saying don't do that

We all do

Just make sure, for your dogs sake, that he knows his place.