code: public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
        throws RemoteException {
      // Get the UserService.
      UserServiceInterface userService = adManagerServices.get(session, UserServiceInterface.class);
  
      // Get the current user.
      User user = userService.getCurrentUser();
  
      System.out.printf(
          "User with ID %d, name '%s', email '%s', and role '%s' is the current user.%n",
          user.getId(), user.getName(), user.getEmail(), user.getRoleName());
    }
docs: Runs the example.
  
  @param adManagerServices the services factory.
  @param session the session.
  @throws ApiException if the API request failed with one or more service errors.
  @throws RemoteException if the API request failed due to other errors.