ads_common/lib/ads_common/parameters_validator.rb
def add_order_key(args, fields_list)
      all_args = fields_list.map {|field| field[:name]}
      order_array = (all_args & args.keys)
      args[:order!] = order_array unless order_array.empty?
    end
def add_order_key(args, fields_list)
      all_args = fields_list.map {|field| field[:name]}
      order_array = (all_args & args.keys)
      args[:order!] = order_array unless order_array.empty?
    end
Generates order of XML elements for SOAP request. Adds :order! key to
 keep the correct order.