I want to pull custom dimension with filter. I tried any solutions for it. But I didn't.
When I put where statement, my code given error. Can anyone help me with this?
My code example as below;
Dimension[] dimensions = new Dimension[] {
Dimension.CUSTOM_DIMENSION,
Dimension.DATE,
Dimension.COUNTRY_CODE,
Dimension.AD_UNIT_NAME,
Dimension.DEVICE_CATEGORY_ID,
Dimension.DEVICE_CATEGORY_NAME,
};
Column[] columns = new Column[]
{
Column.TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS,
Column.TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE,
Column.TOTAL_AD_REQUESTS
};
DimensionAttribute[] dimensionAttributes = new DimensionAttribute[]
{
DimensionAttribute.AD_UNIT_CODE
};
long[] customDimensionKey = { 11997906, 11074198 };
statementBuilder = new StatementBuilder();
.Where("customTargetingValueId IN (448162267794)");
.AddValue("id", targetingValues);