code: public static void runExample(
        AdManagerServices adManagerServices, AdManagerSession session, long productId)
        throws RemoteException {
      // Get the ProductService.
      ProductServiceInterface productService =
          adManagerServices.get(session, ProductServiceInterface.class);
  
      // Create a statement to only select a single product by ID.
      StatementBuilder statementBuilder = new StatementBuilder()
          .where("id = :id")
          .orderBy("id ASC")
          .limit(1)
          .withBindVariableValue("id", productId);
  
      // Get the product.
      ProductPage page =
          productService.getProductsByStatement(statementBuilder.toStatement());
  
      Product product = Iterables.getOnlyElement(Arrays.asList(page.getResults()));
  
      // Update the product's notes.
      product.setNotes("Product needs further review before approval.");
  
      // Update the product on the server.
      Product[] products = productService.updateProducts(new Product[] {product});
  
      for (Product updatedProduct : products) {
        System.out.printf("Product with ID %d and name '%s' was updated.%n",
            updatedProduct.getId(),
            updatedProduct.getName());
      }
    }
docs: Runs the example.
  
  @param adManagerServices the services factory.
  @param session the session.
  @param productId the ID of the product to update.
  @throws ApiException if the API request failed with one or more service errors.
  @throws RemoteException if the API request failed due to other errors.