We're trying to use a criteria performance report to read ad-schedule criterions. Unfortunately, we only get criteria of type "Keyword". We definitely have a campaign that has an Ad-Schedule Criterion using the CampaignCriterionService returns that criterion as expected. If we filter the report for CriteriaType==AD_SCHEDULE, we get an empty result.
Any idea why we don't see the criterion in the report. (We are using API v201402)
Here is the Java-code with the report definition:
ReportDefinition report = new ReportDefinition();
report.setReportName("Some Report");
report.setDateRangeType(ReportDefinitionDateRangeType.ALL_TIME);
report.setReportType(ReportDef
initionReportType.CRITERIA_PERFORMANCE_REPORT);
report.setDownloadFormat(DownloadFormat.XML);
report.setIncludeZeroImpressions(true);
Selector reportSelector = new Selector();
reportSelector.getFields().add("CampaignId");
reportSelector.getFields().add("CampaignName");
reportSelector.getFields().add("BidModifier");
reportSelector.getFields().add("CriteriaType");
Predicate adSchedulePredicate = new Predicate();
adSchedulePredicate.setField("CriteriaType");
adSchedulePredicate.setOperator(PredicateOperator.EQUALS);
adSchedulePredicate.getValues().add("AD_SCHEDULE");
reportSelector.getPredicates().add(adSchedulePredicate);
report.setSelector(reportSelector);