code: public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
        throws RemoteException {
      ReconciliationReportServiceInterface reconciliationReportService =
          adManagerServices.get(session, ReconciliationReportServiceInterface.class);
  
      // Get the NetworkService.
      NetworkServiceInterface networkService =
          adManagerServices.get(session, NetworkServiceInterface.class);
  
      // Get the first day of last month in your network's time zone.
      Network network = networkService.getCurrentNetwork();
      DateTime lastMonth =
          new DateTime(DateTimeZone.forID(network.getTimeZone()))
              .minusMonths(1)
              .dayOfMonth()
              .withMinimumValue();
  
      // Create a statement to select reconciliation reports.
      StatementBuilder statementBuilder =
          new StatementBuilder()
              .where("startDate = :startDate")
              .orderBy("id ASC")
              .limit(1)
              .withBindVariableValue("startDate", lastMonth.toString("YYYY-MM-dd"));
  
      // Get the reconciliation report.
      ReconciliationReportPage page =
          reconciliationReportService.getReconciliationReportsByStatement(
              statementBuilder.toStatement());
  
      int totalResultSetSize = 0;
      if (page.getResults() != null) {
        // Print out some information for each reconciliation report.
        totalResultSetSize = page.getTotalResultSetSize();
        int i = page.getStartIndex();
        for (ReconciliationReport reconciliationReport : page.getResults()) {
          System.out.printf(
              "%d) Reconciliation report with ID %d and start date '%s' was found.%n",
              i++, reconciliationReport.getId(), reconciliationReport.getStartDate());
        }
      }
  
      System.out.printf("Number of results found: %d%n", totalResultSetSize);
    }
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.