Good morning, we're having an annoying issue when trying to fetch data from 
AdWords API, our production server reports the following error:

AdwordsApi::Errors::ReportXmlError: HTTP code: 500, error type: 
'ReportDownloadError.INTERNAL_SERVER_ERROR', trigger: 'Unexpected Internal 
Server Error', field path: ''

This is a rails app using google-adwords-api-0.11.0... I started 
investigating if this is effectively credentials problem. Turns out I 
wasn't able to reproduce it... I mean running the code used to perform the 
fetch with the same "failed" data retrieves results normally.

One thing to note is that we use OAUTH authentication and version 201309 of 
the API. Here's the code for the people familiar with ruby

      srv = connection.report_utils(credentials.api_version)

       predicates = predicates.map do |field_name, values|
          {:field => field_name, :operator => 'IN', :values => 
Array.wrap(values)}
        end

        report_definition = {
          :selector => {
            :fields     => report_columns,
            :predicates => [
              { :field => :CampaignId, :operator => 'EQUALS', :values => 
[campaign_id] },
              *predicates
            ]
          },
          :report_name => report_type,
          :report_type => report_type,
          :date_range_type => 'ALL_TIME',
          :download_format => 'CSV'
        }

       srv.download_report(report_definition)

The error is not triggered for all the requests we do, but at "random" 
moments.  Any idea why this error might be happening? Is it expected to 
have some 500 responses from server?

Any help or clue where to start investigating would be really appreciated.

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to