Sir, When I do account dumping using Adwords v201101, am getting Exception as
[ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations] my code below: Selector selector = new Selector(); selector.setFields(customOptions); Calendar fromDate=new ReportDate().toCalendar(); Calendar toDate=new ReportDate().toCalendar(); String DATE_FORMAT = "yyyyMMdd"; SimpleDateFormat sdf =new SimpleDateFormat(DATE_FORMAT); String fromDt=sdf.format(fromDate.getTime()); String toDt=sdf.format(toDate.getTime()); selector.setDateRange(new DateRange(fromDt, toDt)); if(adGrpIds!=null){ Predicate[] adGroupPredicate = new Predicate[adGrpIds.length]; for(int i=0;i<adGroupPredicate.length;i++){ adGroupPredicate[i].setField("AdGroupId"); adGroupPredicate[i].setOperator(PredicateOperator.IN); adGroupPredicate[i].setValues(new String[] {String.valueOf(adGrpIds[i])}); } selector.setPredicates(adGroupPredicate); } if(cmpIds!=null){ Predicate[] campaignPredicate = new Predicate[cmpIds.length]; for(int i=0;i<campaignPredicate.length;i++){ campaignPredicate[i].setField("CampaignId"); campaignPredicate[i].setOperator(PredicateOperator.IN); campaignPredicate[i].setValues(new String[] {String.valueOf(cmpIds[i])}); } selector.setPredicates(campaignPredicate); } ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName("KeywordSynchronizeReport"); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE); if(repType[0].equals("Keyword")) {reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT);} else if(repType[0].equals("AdGroup")) {reportDefinition.setReportType(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT);} else if(repType[0].equals("Structure")) {reportDefinition.setReportType(ReportDefinitionReportType.ACCOUNT_PERFORMANCE_REPORT);} reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setCrossClient(true); //Client reportDefinition.setClientSelectors(new ClientSelector[]{new ClientSelector(gleSer.getBusAssSeaEngAccountInfo().getClientName(),null)}); reportDefinition.setSelector(selector); ReportDefinitionOperation operation = new ReportDefinitionOperation(); operation.setOperand(reportDefinition); operation.setOperator(Operator.ADD); ReportDefinitionOperation[] operations = new ReportDefinitionOperation[] {operation}; ReportDefinition[] result = rs.mutate(operations); //reportDefinitionResult.getId(); if (result != null) { for (ReportDefinition reportDefinitionResult : result) { System.out.println("Report definition with name \""+ reportDefinitionResult.getReportName() + "\" and id \"" + reportDefinitionResult.getId() + "\" was added."); } } else { System.out.println("No report definitions were added."); } Tnx 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