public static void runExample(
      AdManagerServices adManagerServices,
      AdManagerSession session,
      long reconciliationReportId,
      long reconciliationReportRowId)
      throws RemoteException {
    // Get the ReconciliationReportRowService.
    ReconciliationReportRowServiceInterface reconciliationReportRowService =
        adManagerServices.get(session, ReconciliationReportRowServiceInterface.class);

    // Create a statement to select reconciliation report rows.
    StatementBuilder statementBuilder =
        new StatementBuilder()
            .where(
                "id = :reconciliationReportRowId AND "
                    + "reconciliationReportId = :reconciliationReportId")
            .orderBy("id ASC")
            .limit(StatementBuilder.SUGGESTED_PAGE_LIMIT)
            .withBindVariableValue("reconciliationReportRowId", reconciliationReportRowId)
            .withBindVariableValue("reconciliationReportId", reconciliationReportId);

    // Get reconciliation report rows by statement.
    ReconciliationReportRowPage page =
        reconciliationReportRowService.getReconciliationReportRowsByStatement(
            statementBuilder.toStatement());

    ReconciliationReportRow row = Iterables.getOnlyElement(Arrays.asList(page.getResults()));

    // Set a comment on the reconciliation report row.
    row.setComments(
        "Third party volume didn't match Ad Manager. " + "We agreed to split the difference.");

    // Set and use a manual volume for billing.
    row.setManualVolume((row.getDfpVolume() + row.getThirdPartyVolume()) / 2);
    row.setReconciliationSource(BillFrom.MANUAL);

    ReconciliationReportRow[] updatedRows =
        reconciliationReportRowService.updateReconciliationReportRows(
            new ReconciliationReportRow[] {row});

    for (ReconciliationReportRow updatedRow : updatedRows) {
      System.out.printf(
          "Reconciliation report row for line item ID %d and creative ID %d was "
              + "updated, with manual volume %d.%n",
          updatedRow.getLineItemId(), updatedRow.getCreativeId(), updatedRow.getManualVolume());
    }
  }
public static void runExample ( AdManagerServices adManagerServices , AdManagerSession session , long reconciliationReportId , long reconciliationReportRowId ) throws RemoteException { ReconciliationReportRowServiceInterface reconciliationReportRowService = adManagerServices . get ( session , ReconciliationReportRowServiceInterface . class ) ; StatementBuilder statementBuilder = new StatementBuilder ( ) . where ( "id = :reconciliationReportRowId AND " + "reconciliationReportId = :reconciliationReportId" ) . orderBy ( "id ASC" ) . limit ( StatementBuilder . SUGGESTED_PAGE_LIMIT ) . withBindVariableValue ( "reconciliationReportRowId" , reconciliationReportRowId ) . withBindVariableValue ( "reconciliationReportId" , reconciliationReportId ) ; ReconciliationReportRowPage page = reconciliationReportRowService . getReconciliationReportRowsByStatement ( statementBuilder . toStatement ( ) ) ; ReconciliationReportRow row = Iterables . getOnlyElement ( Arrays . asList ( page . getResults ( ) ) ) ; row . setComments ( "Third party volume didn't match Ad Manager. " + "We agreed to split the difference." ) ; row . setManualVolume ( ( row . getDfpVolume ( ) + row . getThirdPartyVolume ( ) ) / 2 ) ; row . setReconciliationSource ( BillFrom . MANUAL ) ; ReconciliationReportRow [ ] updatedRows = reconciliationReportRowService . updateReconciliationReportRows ( new ReconciliationReportRow [ ] { row } ) ; for ( ReconciliationReportRow updatedRow : updatedRows ) { System . out . printf ( "Reconciliation report row for line item ID %d and creative ID %d was " + "updated, with manual volume %d.%n" , updatedRow . getLineItemId ( ) , updatedRow . getCreativeId ( ) , updatedRow . getManualVolume ( ) ) ; } }
Runs the example.

@param adManagerServices the services factory.
@param session the session.
@param reconciliationReportId the ID of the reconciliation report to retrieve rows for.
@param reconciliationReportRowId the ID of the reconciliation report row to retrieve.
@throws ApiException if the API request failed with one or more service errors.
@throws RemoteException if the API request failed due to other errors.