adwords_api/lib/adwords_api/report_utils.rb
def get_report_definition_text(report_definition)
      return case report_definition
        when String then report_definition
        when Hash then report_definition_to_xml(report_definition)
        else
          raise AdwordsApi::Errors::InvalidReportDefinitionError,
              'Unknown object for report definition: %s' %
              report_definition.class
      end
    end
def get_report_definition_text(report_definition)
      return case report_definition
        when String then report_definition
        when Hash then report_definition_to_xml(report_definition)
        else
          raise AdwordsApi::Errors::InvalidReportDefinitionError,
              'Unknown object for report definition: %s' %
              report_definition.class
      end
    end
def get_report_definition_text ( report_definition ) return case report_definition when String then report_definition when Hash then report_definition_to_xml ( report_definition ) else raise AdwordsApi :: Errors :: InvalidReportDefinitionError , 'Unknown object for report definition: %s' % report_definition . class end end
Converts passed object to XML text. Currently support String (no changes)
 and Hash (renders XML).
Converts passed object to XML text . Currently support String ( no changes ) and Hash ( renders XML ) .