Hi, How are you setting your authentication headers? Are you using the same clientEmail that you are using when you log into the AdWords web interface to schedule the report?
Best, - Eric Koleda, AdWords API Team On Feb 17, 6:58 am, Jasmine Diana <[email protected]> wrote: > Hello, > I read the AdWord API documentation. > And I created an AdGroup Performance Report in C#.NET for API version > v13. > The web-reference URL I am using is > "https://adwords.google.com/api/adwords/v13/ReportService?wsdl". > When I am creating the AdGroup Performance Report through API it is > returning empty result. > But when I am creating the same report with same options through web > site interface it is showing the results. > Please help. > > This is the C# code i used the create the report > > // Create report job structure. > DefinedReportJob job = new DefinedReportJob(); > job.selectedReportType = "AdGroup"; > job.name = "ReportDaily"; > job.aggregationTypes = new String[] { "Daily" }; > job.adWordsType = AdWordsType.SearchOnly; > job.keywordType = KeywordType.Broad; > job.startDay = new DateTime(2010, 2, 15); > job.endDay = new DateTime(2010, 2, 16); > job.selectedColumns = new String[] { "CustomerName", > "Campaign", "AdGroup", "Clicks", "Cost" }; > > // Validate report. > service.validateReportJob(job); > > // Schedule report. > long jobId = service.scheduleReportJob(job); > > // Wait for report to finish. > ReportJobStatus status = > service.getReportJobStatus(jobId); > while (status != ReportJobStatus.Completed && > status != ReportJobStatus.Failed) > { > Console.WriteLine( > "Report job status is \"" + status + > "\"."); > Thread.Sleep(30000); > status = service.getReportJobStatus(jobId); > } > > if (status == ReportJobStatus.Failed) > { > Console.WriteLine("Report job generation > failed."); > System.Environment.Exit(0); > } > > // Download report. > String url = service.getReportDownloadUrl(jobId); -- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en.
