File reportFile = null;
            for (int i = 0; i < RETRIES_COUNT; i++) {
              try {
                reportFile =
                    new ReportDownloader(reportDefinitionXml, 
client.getCustomerId()).downloadReport(authToken);
                if (reportFile != null) {
                  int total = numCompleted.incrementAndGet();
                  System.out.format("Downloaded report for %d, %d/%d\n", 
client.getCustomerId(), total, clients.size());
                  break;
                }
              } catch (Exception e) {
                // In a production application, it would be better to use a
                // logging framework and detect if the failure is temporary 
or
                // permanent.
             System.out.println( client.getCustomerId() + " -> " + 
e.getMessage() );
              }

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to