RE: Question - Downloading Reports for Multiple Client Accounts

2011-11-08 Thread Peter Petrov
I don't know why it didn't create a new topic, sorry about that, maybe
because I hit reply to another email from this group and just changed the
subject.

Maybe there was some hidden header which made my post go to an existing
topic and not create a new topic.

 

OK, when I said 'requesting' and 'downloading' I meant that 

*   'requesting' is the process of generating an HTTP request (POST/GET)
/for an AdHoc report/
*   'downloading' is the process of reading the HTTP response we get
back as a reply to this HTTP request

 

I see now what you mean, maybe it's my English but I still tend to think
this sentence is ambiguous.

We recommend requesting no more than 10 reports concurrently and to use one
thread for each concurrent download.

 

Basically all you mean is that there should be one thread per client account
(might be reused from a pool, of course), 

that thread generates the HTTP request and also that thread reads the HTTP
response back.

Correct?

 

Regards,

Peter

 

  _  

 

From: Kevin Winter [mailto:kevin.win...@google.com] 
Sent: Monday, November 07, 2011 8:11 PM
To: adwords-api@googlegroups.com
Cc: p.a.pet...@gmail.com
Subject: Re: Question - Downloading Reports for Multiple Client Accounts

 

Hi Peter,

  Please create a new topic when your message does not correspond to the
topic currently under discussion.

 

In v201109 AdHoc reports the requesting and downloading is one and the
same (whereas in v13 you had to first request the report and wait for it to
run prior to downloading it).

 

You are correct that the ReportDownloader invokes downloadReport from inside
multiple thread spawned by the ExecutorService - this is a recommended
method for downloading reports.  Multi-threaded synchronization is not
required across threads as the synchronous report download (report is
delivered in response to a single http request) does not share state.  We
recommend making approximately 10 requests simultaneously.

 

- Kevin Winter

AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Question - Downloading Reports for Multiple Client Accounts

2011-11-08 Thread Kevin Winter
Hi Peter,
  Yes, that is correct, one thread (possibly pooled) to generate the HTTP 
request and read the response back per client account.  In most libraries 
the request is asynchronous, so there isn't a good separation between the 
request and the response.  Sorry for the confusion.

- Kevin Winter
AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Question - Downloading Reports for Multiple Client Accounts

2011-11-07 Thread Kevin Winter
Hi Peter,
  Please create a new topic when your message does not correspond to the 
topic currently under discussion.

In v201109 AdHoc reports the requesting and downloading is one and the 
same (whereas in v13 you had to first request the report and wait for it to 
run prior to downloading it).

You are correct that the ReportDownloader invokes downloadReport from 
inside multiple thread spawned by the ExecutorService - this is a 
recommended method for downloading reports.  Multi-threaded synchronization 
is not required across threads as the synchronous report download (report 
is delivered in response to a single http request) does not share state. 
 We recommend making approximately 10 requests simultaneously.

- Kevin Winter
AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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