GetCampaignById

Gets a campaign by ID

This method retrieves an existing campaign within your account by its ID.

SOAP action: http://apiconnector.com/v2/ApiService/GetCampaignById

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Campaign Id - required; integer

Output parameters

  • GetCampaignByIdResult
    • 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);
}