code: public static void runExample(
        AdManagerServices adManagerServices, AdManagerSession session, long companyId)
        throws RemoteException {
      // Get the CompanyService.
      CompanyServiceInterface companyService =
          adManagerServices.get(session, CompanyServiceInterface.class);
  
      // Create a statement to only select a single company by ID.
      StatementBuilder statementBuilder =
          new StatementBuilder()
              .where("id = :id")
              .orderBy("id ASC")
              .limit(1)
              .withBindVariableValue("id", companyId);
  
      // Get the company.
      CompanyPage page = companyService.getCompaniesByStatement(statementBuilder.toStatement());
  
      Company company = Iterables.getOnlyElement(Arrays.asList(page.getResults()));
  
      // Update the comment.
      company.setComment(company.getComment() + " Updated.");
  
      // Update the company on the server.
      Company[] companies = companyService.updateCompanies(new Company[] {company});
  
      for (Company updatedCompany : companies) {
        System.out.printf(
            "Company with ID %d, name '%s', and comment '%s' was updated.%n",
            updatedCompany.getId(), updatedCompany.getName(), updatedCompany.getComment());
      }
    }
docs: Runs the example.
  
  @param adManagerServices the services factory.
  @param session the session.
  @param companyId the ID of the company 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.