i have a problem when i try to generate a report using the v201008.
the report comes back empty.
the report is generated as follows:

 String startDate = "20100610";
                      String endDate = "20110125";


                      Predicate predicate = new Predicate();
                      predicate.setField("AdGroupStatus");
                      predicate.setOperator(PredicateOperator.EQUALS);
                      predicate.setValues(new String[] {"PAUSED"});

                      // Create selector.
                      Selector selector = new Selector();
                     selector.setFields(new String[] {"AdGroupId",
"AdGroupStatus", "CampaignName",
                          "AdGroupName", "Impressions", "Clicks", "Cost"});
                      selector.setPredicates(new Predicate[] {predicate});
                      selector.setDateRange(new DateRange(startDate, endDate));

                      // Create report definition.
                      ReportDefinition reportDefinition = new
ReportDefinition();
                      reportDefinition.setReportName("Automatic Placements
Performance: #" + System.currentTimeMillis());
        
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.ALL_TIME);
        
reportDefinition.setReportType(ReportDefinitionReportType.AUTOMATIC_PLACEMENTS_PERFORMANCE_REPORT);
        
reportDefinition.setDownloadFormat(DownloadFormat.CSVFOREXCEL);
                      reportDefinition.setSelector(selector);

                      // Create operations.
                      ReportDefinitionOperation operation = new
ReportDefinitionOperation();
                      operation.setOperand(reportDefinition);
                      operation.setOperator(Operator.ADD);

                      ReportDefinitionOperation[] operations = new
ReportDefinitionOperation[] {operation};

                      // Add report definition.
                      ReportDefinition[] result =
reportDefinitionService.mutate(operations);

no error messages, I have no idea what is happening.
Does anyone have an idea ?
thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to