Thanks for clarifying.
The API report breakdown for the UI report shown on this thread is as follows:
Dimension.DATE, Dimension.LINE_ITEM_ID,Dimension.CUSTOM_CRITERIA
Column.AD_SERVER_IMPRESSIONS,Column.AD_EXCHANGE_LINE_ITEM_LEVEL_IMPRESSIONS,Column.AD_EXCHANGE_LINE_ITEM_LEVEL_REVENUE
reportQuery.setDateRangeType(DateRangeType.CUSTOM_DATE);
reportQuery.setStartDate( DateTimes.toDateTime("2014-5-22T00:00:00", "America/New_York").getDate()); //America/New_York
reportQuery.setEndDate( DateTimes.toDateTime("2014-6-21T00:00:00", "America/New_York").getDate());
StatementBuilder statementBuilder = new StatementBuilder()
.where("CUSTOM_TARGETING_VALUE_ID IN(12345)");
reportQuery.setStatement(statementBuilder.toStatement());
Note that this breakdown is in Java and you might need to tweak it to suit your requirement.
For the filter statement, you need to pull the ID(s) of the CUSTOM_TARGETING_VALUE_ID using the
custom targeting service and put it within the IN clause of the where statement.
Here is the Java version of the sample code from our client library.