Mar 2, 2011 at 12:44 PM
Edited Mar 2, 2011 at 12:45 PM
Hi, i am new at using MC Api. We have dynamic content from database and what i want to do is to update the campaign from our database on daily basis, just like a newsletter. There is an error when I am using below code snippet
Dim input As New campaignUpdateInput
input.parms.apikey = apikey
input.api_AccessType = EnumValues.AccessType.Serial
input.api_OutputType = EnumValues.OutputType.XML
input.parms.cid = "123456"
input.parms.name = "Newsletter Test"
Dim val As New Dictionary(Of String, String)
input.parms.value = val
Dim cmd As New campaignUpdate(input)
Dim output As campaignUpdateOutput
output = cmd.Execute()
where mainKicker, mainHeading and mainSummary are the ids of the divs with mc:edit in the template
The error is
Index and length must refer to a location within the string.
Parameter name: length
What I understand with “cid” is campaign id and I get it from the URL when working on it.
Please update me what I am doing wrong and what I am missing, any help will be appreciated