I have an object that looks like this:
Public Class KeyWordObject
Private LocalSearches As String
Private AdvertiserCompetition As String
Private NumberOfWords As String
Public Sub New()
' Leave fields empty.
End Sub
Public Sub New(ByVal LS As String, ByVal AC As String, ByVal NW As String)
LocalSearches = LS
AdvertiserCompetition = AC
NumberOfWords = NW
End Sub
Public Property LocalSearchAmount As String
Get
Return LocalSearches
End Get
Set(ByVal value As String)
LocalSearches = value
End Set
End Property
Public Property AdvertiserCompetitionAmount As String
Get
Return AdvertiserCompetition
End Get
Set(ByVal value As String)
AdvertiserCompetition = value
End Set
End Property
Public Property WordCount As String
Get
Return NumberOfWords
End Get
Set(ByVal value As String)
NumberOfWords = value
End Set
End Property
End Class
I am trying parse a CSV file with the following Headers like this:
Ad group Keyword Avg. Monthly Searches (exact match only) Competition Suggested bid Impr. share Organic impr. share
I would like to get the data from the Keyword, Avg. Monthly Searches, And competition columns and place them into an object. What would be the best way to parse this data out?