Get List of Campaigns

Mar 2, 2016 at 6:44 PM
I am trying to get a list of all campaigns and I am getting this error -
"Requested value 'automation' was not found. at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) at PerceptiveMCAPI.apiHelper.GetEnumFromString[T](String value) at PerceptiveMCAPI.Types.campaignsOutput.FormatResults(x_campaigns x_results) at PerceptiveMCAPI.Types.campaignsOutput.outputJSON()"

Here is my code -
    Dim campInput As New campaignsInput
    campInput.parms.apikey = APIKEY
    campInput.api_AccessType = PerceptiveMCAPI.EnumValues.AccessType.Serial
    campInput.api_CustomErrorMessages = True
    campInput.api_MethodType = PerceptiveMCAPI.EnumValues.MethodType.POST
    campInput.api_Validate = False
    campInput.api_OutputType = PerceptiveMCAPI.EnumValues.OutputType.XML

    Dim camp As campaigns
    camp = New campaigns(campInput)

    Dim campOutput As campaignsOutput
    campOutput = camp.Execute()
What am I missing?