Okay, after following up with Pete a bit off-thread, I think I have
enough information to file an issue with the core engineering team.

Basically, the behavior he was seeing is that he'd call
getReportDownloadUrl() for a recently-completed report job id, get a
URL back, and then upon downloading the URL find that there was no
content. I asked Pete to try calling getReportDownloadUrl() a second
time for the same report job id, and upon downloading that new URL the
report content was there. Additionally, the report is properly
accessible via the web interface's Report Center (ignore my previous
message about not being able to find it there).

This is obviously going to be a bit more difficult to debug than if,
for example, there was something about a given report job id that
caused it to always lead to a download URL that pointed to nothing,
but we'll see what we can do. It actually sounds like it may have some
similarities to another open issue described at

  
http://groups.google.com/group/adwords-api/browse_thread/thread/c08c632b8d7d83f8#

I'll post updates with any information I get back from the core
engineering team. In the meantime, apologies for the inconvenience,
and putting in logic to call getReportDownloadUrl() again and get a
new URL when you encounter this failure seems to be a workaround.

Cheers,
-Jeff Posnick, AdWords API Team


On Dec 4, 6:46 pm, dkasak <[EMAIL PROTECTED]> wrote:
> HI Jeff. Here's another one for you.
>
> URL:https://adwords.google.com/api/adwords/ReportDownload?t=AAAAACOvQ1YAA...
>
> ReportID: 598688598
>
> And a bit of our log:
>
> 1204-133949 S Google.pm/412 Creative Report version:  Google API v12
> 1204-133950 S Base.pm/1404 Creating Service ReportService
> 1204-133950 S Base.pm/1620 Checking the report status for report
> 598688598
> 1204-133950 S Base.pm/1624 Waiting 10 seconds..
> 1204-134000 S Base.pm/1630 Current status for report 598688598 is
> Completed
> 1204-134000 S Base.pm/1634 Success: finished report(598688598)
> 1204-134000 S Base.pm/1545 Doing a file download from URL
> 1204-134019 S Base.pm/1716 Download 
> URLhttps://adwords.google.com/api/adwords/ReportDownload?t=AAAAACOvQ1YAA...
> to file /tmp/IgFStFB0HF/BdJGnNUukf.zip successful!
> 1204-134019 E se_download.pl/53 ERROR IN SE Download for:
> --------------------------------------------------------------------------------
> ERROR               =
> no element found at line 1, column 0, byte 0:
> D
> ^
>  at /usr/local/lib/perl5/site_perl/5.8.3/i686-linux/XML/Parser.pm line
> 187
>
> As you can see, we only waited 10 seconds until checking that the
> report was complete, and it was at this point ( we got a url ) so we
> downloaded it. It again was a valid zip file, but when unpacked the
> report was a zero-byte file.
>
> I logged into the web ui and found the report id, and when I clicked
> on it, I got a single row of zeros. What is the behaviour in this
> case? Should we expect a report structure, but with no data? Or does
> the report structure only get output upon the 1st row of data?
>
> Thanks.
>
> Dan
>
> On Dec 4, 9:02 am, AdWords API Advisor <[EMAIL PROTECTED]>
> wrote:
>
> > I'd definitely like to get to the bottom of the situation, so again,
> > if anyone is seeing this behavior, the most useful thing you could
> > check on is whether the report is also empty in the Report Center of
> > the AdWords web interface. That information, along with the reportId
> > and ideally some sort of way of identifying your getReportDownloadUrl
> > () request (either a log or the returned URL or the requestId SOAP
> > response header) would be great.
>
> > Cheers,
> > -Jeff Posnick, AdWords API Team
>
> > On Dec 3, 4:17 pm, "Pete Lavetsky (AdWords API Guru)"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Might be an issue if you're waiting too long to download the report.
>
> > >http://code.google.com/apis/adwords/docs/developer/ReportService.html
>
> > > "When your report job is complete, use getReportDownloadUrl to
> > > retrieve the URL where your report is stored. The returned URL is
> > > valid for five minutes. If the URL expires, just call
> > > getReportDownloadUrl again. Keep this URL private, since anyone can
> > > use it to access your report."
>
> > > I've seen both 404s for the URLs and also empty data reports but I had
> > > always assumed we waited too long to download the report.  I'd be
> > > interested to see if the empty report can be more definitely nailed
> > > down to a different cause.
>
> > > Pete
>
> > > On Dec 3, 3:57 pm, pedro <[EMAIL PROTECTED]> wrote:
>
> > > > Jeff
>
> > > > I have been experiencing this too.  I thought initially it was my
> > > > server running out of space but now that someone else is getting this
> > > > behaviour I am more suspicious.  I will investigate my situation more
> > > > and report back.
>
> > > > Peter Doyle
>
> > > > On Dec 2, 4:31 pm, AdWords API Advisor <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > Hello Daniel,
>
> > > > >  In addition to being exposed via the AdWords API, all the reports you
> > > > > schedule should also be available via thehttp://adwords.google.com/
> > > > > web interface, in the Report Center of the account in question (this
> > > > > may be the Report Center of the MCC account or of the actual AdWords
> > > > > account, depending on how to scheduled it).
>
> > > > >  Assuming you haven't scheduled 15 other reports since then and bumped
> > > > > the report you mention out of the queue in the Report Center, what
> > > > > happens when you take a look at the report via the web interface? Do
> > > > > you see a properly populated report, or is it empty there as well?
>
> > > > > Cheers,
> > > > > -Jeff Posnick, AdWords API Team
>
> > > > > On Dec 1, 11:51 pm, dkasak <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi all.
>
> > > > > > I posted this question ... somewhere else ... but I can't find where
> > > > > > now, so maybe I posted it in the wrong place? Anyway ...
>
> > > > > > I've been asked to look at an issue where some reports that we
> > > > > > download contain no information. The compressed file itself is valid
> > > > > > ( ie not corrupted ), but when we unpack it, the report file inside 
> > > > > > is
> > > > > > 0 bytes. ( Example report ID: 582000854 )
>
> > > > > > Does anyone know why we're ( intermittently ) getting these 0-byte
> > > > > > reports?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to