ad_manager_api/lib/ad_manager_api/pql_statement_utils.rb
def generate_value_object(value)
      typeKeyValue = VALUE_TYPES.find {|key, val| value.is_a? key}
      dateTypes = [AdManagerApi::AdManagerDate, AdManagerApi::AdManagerDateTime]
      if dateTypes.include?(value.class)
        value = value.to_h
      end
      return value if typeKeyValue.nil?
      return {:xsi_type => typeKeyValue.last, :value => value}
    end
def generate_value_object(value)
      typeKeyValue = VALUE_TYPES.find {|key, val| value.is_a? key}
      dateTypes = [AdManagerApi::AdManagerDate, AdManagerApi::AdManagerDateTime]
      if dateTypes.include?(value.class)
        value = value.to_h
      end
      return value if typeKeyValue.nil?
      return {:xsi_type => typeKeyValue.last, :value => value}
    end
def generate_value_object ( value ) typeKeyValue = VALUE_TYPES . find { | key , val | value . is_a? key } dateTypes = [ AdManagerApi :: AdManagerDate , AdManagerApi :: AdManagerDateTime ] if dateTypes . include? ( value . class ) value = value . to_h end return value if typeKeyValue . nil? return { :xsi_type => typeKeyValue . last , :value => value } end
Create an individual value object by inferring the xsi_type. If the value
 type isn't recognized, return the original value parameter.
Create an individual value object by inferring the xsi_type . If the value type isn t recognized return the original value parameter .