BERLIN - Serbia must decide whether it wants to join the European Union or enter into a partnership with Russia, Germany told Belgrade on Tuesday, two days before six Western Balkan countries are scheduled to discuss closer cooperation in Berlin.

"The need for a decision is coming to a head in view of geopolitical developments," a German government representative said in reference to Russia's war in Ukraine.

Serbia, which was bombed by NATO two decades ago but now seeks to join the European Union, has long struggled to balance historically close ties with Russia against aspirations for economic and political integration with the West.

An agreement between Serbia and Russia on enhanced cooperation had been met with surprise and disappointment, and was a poor fit with expectations that EU accession candidates should also adopt EU sanctions against Russia, the representative said.

Serbia, an accession candidate since 2012, decided in September to hold regular foreign policy consultations on bilateral and multilateral activities with Russia. The move prompted harsh criticism from the EU. One got the impression that Serbian President Aleksandar Vucic was well aware of his pendulum position, the German government representative said.

If he decided to lead his country in the direction of the European Union, he had the German government's support.

"Should he decide to go the other way, this will have consequences in reverse."

(Reporting by Andreas Rinke, writing by Kirsti Knolle, editing by Miranda Murray)