2 messages in com.googlegroups.adwords-apiAdWords API Blank report
FromSent OnAttachments
masterix15 Jul 2008 05:29 
AdWords API Advisor15 Jul 2008 11:45 
Subject:AdWords API Blank report
From:masterix (mast@gmail.com)
Date:07/15/2008 05:29:35 AM
List:com.googlegroups.adwords-api

Hi!

I have problem while testing reports. I get empty report, only header is present and no content is available. I use C#, the code: ReportService report = user.getService("ReportService") as ReportService; DefinedReportJob job = new DefinedReportJob(); job.selectedReportType = "Keyword"; job.name = "Przykładowy raport kejłordsów"; job.aggregationTypes = new String[] { "weekly" }; job.startDay = new DateTime(2008, 7, 12); job.endDay = new DateTime(2008, 7, 14); job.adWordsType = AdWordsType.SearchOnly; job.adWordsTypeSpecified = true; job.keywordType = KeywordType.Broad; job.keywordTypeSpecified = true; job.crossClient = true; job.crossClientSpecified = true; job.selectedColumns = new String[] { "Campaign", "AdGroup", "Keyword", "KeywordStatus", "KeywordMinCPC", "KeywordDestUrlDisplay", "Impressions", "Clicks", "CTR", "AveragePosition" };

try { report.validateReportJob(job);

long jobId = report.scheduleReportJob(job);

ReportJobStatus jobStatus = report.getReportJobStatus(jobId); while (jobStatus != ReportJobStatus.Completed && jobStatus != ReportJobStatus.Failed) { Console.Out.WriteLine("Status tworzenia raportu: " + jobStatus); Thread.Sleep(10000); jobStatus = report.getReportJobStatus(jobId); }

if (jobStatus == ReportJobStatus.Failed) { Console.Out.WriteLine("Raportu nie będzie"); System.Environment.Exit(0); }

String url = report.getGzipReportDownloadUrl(jobId); Console.Out.WriteLine("Raport można ściągnąć z " + url); StreamWriter wr = File.AppendText("link.txt"); wr.Write(url); wr.Close(); } catch (SoapException ex) { Console.Out.WriteLine("Raport nie wyszedł bo spieprzyłeś co następuje: " + ex.Message); }

I think I should get random content. What's wrong? I'm connected to sandbox and I can retrieve information like user accounts, campaigns and so on.