The UpdateCampaign method can be used to update a specified campaign and can be useful if you need to make changes to any settings or content to the campaign before it is sent.
Guidance Notes
The campaign will be validated before being saved to ensure it includes an unsubscribe link.
This method can only be used to update a campaign that has not yet been sent. It cannot be used to update the campaign status.
Parameters
| username |
string |
This is the username from your API key. It is in the format of an email address and will look similar to apiuser‑908709770324@apiconnector.com |
required |
| password |
string |
This is the password from your API key. |
required |
| campaign |
campaign |
This is the campaign object; it can be used to set properties relating to the campaign you are creating. |
partially required |
The following elements of the campaign object are required:
| fromName |
string |
The name that the email campaign should appear to be from. |
required |
| htmlContent |
string |
The contents of the HTML email; this will be validated before saving and must contain an unsubscribe link (http://$UNSUB$). |
required |
| id |
id |
The system generated ID for the campaign. This must be for a campaign that already exists and has not yet been sent (or scheduled to be sent). |
required |
| name |
string |
The name of the campaign as it appears in your account; this is not directly exposed to the
end recipient and may be different to the subject line. (The name is used in Google Analytics
campaign tagging so should be kept recipient friendly.) |
required |
| plaintextContent |
string |
The contents of the Plain Text email; this will be validated before saving and must contain an unsubscribe link (http://$UNSUB$). |
required |
| replyAction |
Unset or WebMailForward or Webmail or Delete |
What should be done with replies received to the campaign. |
required |
| replyToAddress |
string |
If the reply action is set to WebMailForward, what email address they should be forwarded to. |
partially required |
| status |
|
The status of the campaign. |
Must not be specified |
| subject |
string |
The subject line of the email. |
required |
Return values
None.