Google has won a case against German newspaper and magazine publishers that had been demanding the U.S. company pay royalties for the use of excerpts in its search engine.

The EU’s Court of Justice ruled on Thursday that a provision in German copyright law requiring Google to pay for excerpts appearing on its Google News service was invalid because the European Commission had not been notified of the regulation.