The tickets to Van Gogh Museum in Amsterdam are timed and can only be purchased online. Furthermore, in the high summer season, they often sell out at least a week or two in advance. If you want to be sure to visit the museum on the day and the time slot that suits you best, you really have to reserve your tickets at least a couple of weeks before your visit. You can see the availability and book your tickets here.