The marketing deal between the City of New York and the soft drink Snapple has been criticised by a judge but will remain in place.

City Comptroller William Thompson had tried to block the Mayor Bloomberg administration's US$126mn deal to place Snapple products in city buildings.

State Supreme Court Justice Richard Braun said the Snapple contract violated the City Charter because the mayor did not certify it at all and the city corporation counsel did not certify it properly.

However he said it was of great benefit to the City and he would allow the 3,500 Snapple vending machines to remain in place in city-owned areas.