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);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3d8b445b-41e0-40b9-bed1-c1996e28c66e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to