code: public static void runExample(
        AdManagerServices adManagerServices, AdManagerSession session, long packageId)
        throws RemoteException {
      // Get the PackageService.
      PackageServiceInterface packageService =
          adManagerServices.get(session, PackageServiceInterface.class);
  
      // Create a statement to select a single package.
      StatementBuilder statementBuilder =
          new StatementBuilder()
              .where("id = :id")
              .orderBy("id ASC")
              .limit(1)
              .withBindVariableValue("id", packageId);
  
      // Get the package.
      PackagePage page = packageService.getPackagesByStatement(statementBuilder.toStatement());
  
      Package pkg = Iterables.getOnlyElement(Arrays.asList(page.getResults()));
  
      // Update the comments of the package.
      pkg.setComments("This package is ready to be made into proposal line items.");
  
      // Update the package on the server.
      Package[] packages = packageService.updatePackages(new Package[] {pkg});
  
      for (Package updatedPackage : packages) {
        System.out.printf(
            "Package with ID %d and name '%s' was updated.%n",
            updatedPackage.getId(), updatedPackage.getName());
      }
    }
docs: Runs the example.
  
  @param adManagerServices the services factory.
  @param session the session.
  @param packageId the ID of the package 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.