A candy container makes more sense given the flip-top lid on it.
And 2ndly, you don't put things in such containers that you can't get back out easily.
The advertising on it is just a "freebie" for whoever made the container.
Or, they were specifically made as advertising "gimmics" with candy inside of them.
Possibly you were given one of said if you purhased a pair of shoes.
"
HA", ....... the original forebearer of McD's Happy Meal.