Thanks. On 11月26日, 上午6时24分, AdWords API Advisor <[email protected]> wrote: > Hi, > > My guess is that there is a small difference between the parameters of > the report you are scheduling through the API and the one scheduled > through the web interface. Find the report job scheduled through the > API and click the "Create Similar" link. Check over the parameters to > make sure they are correct, and perhaps re-run the report to see if > the results are the same. > > Best, > - Eric Koleda, AdWords API Team > > On Nov 25, 1:54 pm, Kelvin <[email protected]> wrote: > > > > > Hi, all. > > > I'm using the .net client lib and I set all the parameters in the > > report service, however the returned xml shows: > > <?xml version="1.0" standalone="yes" ?> > > - <report> > > - <table> > > - <columns> > > <column name="date" /> > > <column name="keywordid" /> > > <column name="keyword" /> > > <column name="firstPageCpc" /> > > <column name="budget" /> > > <column name="imps" /> > > <column name="clicks" /> > > <column name="cpc" /> > > <column name="pos" /> > > <column name="conv" /> > > </columns> > > <rows /> > > </table> > > - <totals> > > <grandtotal imps="0" clicks="0" cpc="0" pos="0.0" conv="0" /> > > </totals> > > </report> > > > Part code: > > > ReportService service = new ReportService > > { > > applicationTokenValue = appToken, > > developerTokenValue = devToken, > > useragentValue = usrAgent, > > emailValue = email, > > passwordValue = psword, > > clientEmailValue = new clientEmail { Value = new > > string[] { "xxxxxxxxxxxxxxxxxx" } } > > }; > > > DefinedReportJob job = new DefinedReportJob{ > > selectedReportType = "Keyword", > > aggregationTypes = new string[] { "Daily" }, > > selectedColumns = new string[] { "Keyword", > > "KeywordId", "Impressions", "Clicks", "Conversions", > > "AveragePosition", "CPC", "FirstPageCpc", "DailyBudget" }, > > name = "KeywordReport", > > startDay = DateTime.Today.AddDays(-2), > > endDay = DateTime.Today, > > > adWordsType = AdWordsType.SearchOnly, > > adWordsTypeSpecified = true, > > keywordType = KeywordType.Broad, > > keywordTypeSpecified = true}; > > > try > > { > > service.validateReportJob(job); > > > long jobId = service.scheduleReportJob(job); > > ReportJobStatus status = service.getReportJobStatus > > (jobId); > > while (status != ReportJobStatus.Completed && > > status != ReportJobStatus.Failed) > > { > > Thread.Sleep(30000); > > status = service.getReportJobStatus(jobId); > > } > > if (status == ReportJobStatus.Failed) > > { > > System.Environment.Exit(0); > > } > > return service.getReportDownloadUrl(jobId); > > > I can get the correct report data through running report service in my > > google account, but through adwords API, empty xml fiels are always > > returned, anything wrong? > > > Thanks.- 隐藏被引用文字 - > > - 显示引用的文字 -
-- 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.
