code: public static void runExample(
        AdManagerServices adManagerServices, AdManagerSession session, long productPackageId)
        throws RemoteException {
      // Get the ProductPackageService.
      ProductPackageServiceInterface productPackageService =
          adManagerServices.get(session, ProductPackageServiceInterface.class);
  
      // Create a statement to select a single product package.
      StatementBuilder statementBuilder =
          new StatementBuilder()
              .where("id = :id")
              .orderBy("id ASC")
              .limit(1)
              .withBindVariableValue("id", productPackageId);
  
      // Get the product package.
      ProductPackagePage page =
          productPackageService.getProductPackagesByStatement(statementBuilder.toStatement());
  
      ProductPackage productPackage = Iterables.getOnlyElement(Arrays.asList(page.getResults()));
  
      // Update the notes of the product package.
      productPackage.setNotes(
          "This product package is not to be sold before " + "the end of the month");
  
      // Update the product package on the server.
      ProductPackage[] productPackages =
          productPackageService.updateProductPackages(new ProductPackage[] {productPackage});
  
      for (ProductPackage updatedProductPackage : productPackages) {
        System.out.printf(
            "Product package with ID %d and name '%s' was updated.%n",
            updatedProductPackage.getId(), updatedProductPackage.getName());
      }
    }
docs: Runs the example.
  
  @param adManagerServices the services factory.
  @param session the session.
  @param productPackageId the ID of the product 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.