lib/adwords_api/report_utils.rb
# Checks downloaded data for error signature. Raises ReportError if it
# detects an error.
Checks downloaded data for error signature. Raises ReportError if it
detects an error.
Checks downloaded data for error signature . Raises ReportError if it detects an error .
def check_for_errors(response)
      if response.code != 200
        report_body = response.body
        check_for_xml_error(report_body, response.code)
        raise AdwordsApi::Errors::ReportError.new(response.code,
            'HTTP code: %d, body: %s' % [response.code, response.body])
      end
      return nil
    end
def check_for_errors ( response ) if response . code != 200 report_body = response . body check_for_xml_error ( report_body , response . code ) raise AdwordsApi :: Errors :: ReportError . new ( response . code , 'HTTP code: %d, body: %s' % [ response . code , response . body ] ) end return nil end
Checks downloaded data for error signature.
Checks downloaded data for error signature .
# Check for error code. # Check for error in body. # No XML error found nor raised, falling back to a default message.
response
<not_specific>