Updates a given campaign
This method updates an existing campaign within your account by its ID.
SOAP action: http://apiconnector.com/v2/ApiService/UpdateCampaign
Input and output parameters
The input and output parameters for this method are:
Input parameters
- Name - required; string
- Subject - required; string
- FromName - required; string
- HtmlContent - required; string
- PlainTextContent - required; string
Output parameters
- UpdateCampaignResult
- Id - integer
- Name - string
- Subject - string
- FromName - string
- FromAddress
_Id - _integer
_Email - _string- HtmlContent - string
- PlainTextContent - string
- ReplyAction - string (Unset', 'WebMailForward', 'Webmail', 'Delete')
- ReplyToAddress - string
- IsSplitTest - boolean
- Status - string ('Unsent', 'Sending', 'Sent', 'Paused', 'Cancelled', 'RequiresSystemApproval', 'RequiresSMSApproval', 'RequiresWorkflowApproval', 'Triggered')
Example
using (var client = new ApiServiceClient())
{
client.ClientCredentials.UserName.UserName = "username";
client.ClientCredentials.UserName.Password = "password";
var campaignId = 1;
var campaign = client.GetCampaignById(campaignId);
campaign.Name = "TestUpdatedCampaignName";
var updatedCampaign = client.UpdateCampaign(campaign);
}