code: public static void runExample(
        AdWordsServicesInterface adWordsServices, AdWordsSession session) throws RemoteException {
      // Get the ConstantDataService.
      ConstantDataServiceInterface constantDataService =
          adWordsServices.get(session, ConstantDataServiceInterface.class);
  
      // Get all carriers.
      Carrier[] carriers = constantDataService.getCarrierCriterion();
  
      // Display results.
      for (Carrier carrier : carriers) {
        System.out.printf("Carrier with name '%s', ID %d, and country code '%s' was found.%n",
            carrier.getName(), carrier.getId(), carrier.getCountryCode());
      }
  
      // Get all languages.
      Language[] languages = constantDataService.getLanguageCriterion();
  
      // Display results.
      for (Language language : languages) {
        System.out.printf("Language with name '%s' and ID %d was found.%n", language.getName(),
            language.getId());
      }
    }
docs: Runs the example.
  
  @param adWordsServices 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.