Hello Pete,

 I'm referring to a single canned response for all calls to
scheduleReportJob() that involve a DefinedReportJob (which is
effectively all possible reports in v12/v13). This would be regardless
of the parameters and selectedColumns. It's not ideal, but it's one of
the restrictions imposed by how the current Sandbox's ReportService is
set up.

 I definitely appreciate the desire to exercise your code in unit
tests or during development against a variety of different reports. I
think your best approach to do this given the Sandbox's limitations is
to validate/schedule and poll for report status using the Sandbox, but
when you get to the stage where you make a getReportDownloadUrl()
call, mock that out with your own method that will return the URL of a
report you've set up specifically to meet the requirements of your
tests. You can run some reports in advance against Production or using
the web interface and store them in a local web server, or store it
locally and return a file:// URL in your mocked getReportDownloadUrl()
method. With such an approach you should be able to go through all the
normal steps as you would if you were making your calls in Production,
and you'll have more flexibility for testing your report parsing code
than you would even if we have one Sandbox report available with
static columns and dummy data.

Cheers,
-Jeff Posnick, AdWords API Team


On Jan 8, 1:38 pm, Pete H <googleacco...@thepete.net> wrote:
> Thanks for the response Jeff, appreciate it.
>
> When you say you're not able to implement anything more than a single
> canned response do you mean single response per parameter set, or
> single response per report type, or single response for every single
> Report, regardless of type? Obviously the former(s) would be
> preferable to the latter, but as a fellow engineer I understand you've
> sometimes just gotta deal with the cards you're dealt!
>
> Cheers,
> Pete
>
> On Jan 6, 1:21 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
> > Hello Pete,
>
> >  We're unfortunately not going to be able to implement anything other
> > than a single canned response from the Sandbox's Report Service.
>
> >  As for changing the canned response to have it include some
> > meaningful, albeit static, data, that's on me, and apologies for the
> > delay. I did actually have the change checked in at one point a few
> > months ago but it did not make it into the final build, and I need to
> > follow up on that.
>
> > Cheers,
> > -Jeff Posnick, AdWords API Team
>
> > On Jan 2, 10:35 pm, Pete H <googleacco...@thepete.net> wrote:
>
> > > Hi Jeff and group,
>
> > > Back in May we found out that the mock report that gets returned from
> > > the Sandbox's
> > > report service has gone from being populated with some (static) dummy
> > > data
> > > to being 
> > > empty:http://groups.google.com/group/adwords-api/msg/eb43861877614660?hl=en)
>
> > > Jeff, you also mentioned that you'd put a request in to get more
> > > realistic reports in the sandbox api. Did anything ever happen with
> > > that?
>
> > > I'd love to use the sandbox as part of the QA environment at my
> > > company to save us spending real money testing functionality that uses
> > > the reports API, but as things stand right now that's going to be
> > > tricky.
>
> > > Cheers,
> > > Pete
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to