code: public static void runExample(
        AdWordsServicesInterface adWordsServices, AdWordsSession session, Long labelId)
        throws RemoteException {
      // Get the CampaignService.
      CampaignServiceInterface campaignService =
          adWordsServices.get(session, CampaignServiceInterface.class);
  
      int offset = 0;
  
      // Create selector.
      SelectorBuilder builder = new SelectorBuilder();
      Selector selector = builder
          .fields(CampaignField.Id, CampaignField.Name, CampaignField.Labels)
          // Labels filtering is performed by ID. You can use containsAny to select campaigns with
          // any of the label IDs, containsAll to select campaigns with all of the label IDs, or
          // containsNone to select campaigns with none of the label IDs.
          .containsAny(CampaignField.Labels, labelId.toString())
          .orderAscBy(CampaignField.Name)
          .offset(offset)
          .limit(PAGE_SIZE)
          .build();
  
      CampaignPage page = null;
      do {
        // Get all campaigns.
        page = campaignService.get(selector);
  
        // Display campaigns.
        if (page.getEntries() != null) {
          for (Campaign campaign : page.getEntries()) {
            String labels =
                Joiner.on(", ")
                    .join(
                        Lists.transform(
                            Lists.newArrayList(campaign.getLabels()),
                            label -> String.format("%d/%s", label.getId(), label.getName())));
            System.out.printf("Campaign found with name '%s' and ID %d and labels: %s.%n",
                campaign.getName(), campaign.getId(), labels);
          }
        } else {
          System.out.println("No campaigns were found.");
        }
  
        offset += PAGE_SIZE;
        selector = builder.increaseOffsetBy(PAGE_SIZE).build();
      } while (offset < page.getTotalNumEntries());
    }
docs: Runs the example.
  
  @param adWordsServices the services factory.
  @param session the session.
  @param labelId the ID of the label.
  @throws ApiException if the API request failed with one or more service errors.
  @throws RemoteException if the API request failed due to other errors.