This was also implemented in Lithuania around maybe 5 years ago. Some kids would still get it by asking their parents or strangers to buy them, but they definitely got more rare, to the point where at least where I am, you'd more often see a teen with a ciggie rather than a teen with an energy drink.
In Latvia this started on 2016, June 1st. Not sure if it ever was a big problem, I think this law came because there was an incident when some kid died.