}
public static void runExample(
AdWordsServices adWordsServices, AdWordsSession session) throws Exception {
// 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());