When I downloaded XML file for AdGroup performance report, I my Xml file am getting data only columns bt not rows so am unable to see adgroups I passed Campaign Id as predicate even am unable to get adGroup fields. My code follows like this:
ReportDefinitionServiceInterface reportDefinitionService=ReportDefinitionServiceInterface)user.getService(AdWordsService.V201101.REPORT_DEFINITION_SERVICE); Selector selector=new Selector(); selector.setPredicates(new Predicate[]{(new Predicate("CampaignId",PredicateOperator.EQUALS,new String[] {("..........CampaignId am passing here.......")}))}); selector.setFields(new String[]{"AdGroupId","AdGroupName"}); ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName("My_Sample_Keywrd #" + System.currentTimeMillis()); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.YESTERDAY); reportDefinition.setReportType(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT); reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setSelector(selector); ReportDefinitionOperation operation = new ReportDefinitionOperation(); operation.setOperand(reportDefinition); operation.setOperator(Operator.ADD); ReportDefinitionOperation[] operations = new ReportDefinitionOperation[] {operation}; ReportDefinition[] result = reportDefinitionService.mutate(operations); String url = "https://adwords-sandbox.google.com/api/adwords/ reportdownload?__rd=" + reportDefinitionId; HttpURLConnection urlConn = (HttpURLConnection) new URL(url).openConnection(); urlConn.setRequestMethod("GET"); .... . . . . . . . thx in adv -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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