It is not possible to pre-book/buy public transport tickets from the campsite to the city. Tickets can only be bought on the spot and then paid for. Some campsites that are near airports have the option of booking a transfer from the airport to the campsite.