Send a Campaign by creating a Campaign object, add 1 or more mailings depending on the campaign type. A campaign can be created and later be send when mailings are added by updating the campaign to ReadyForSending and a campaign can also be scheduled to be send later. Keep in mind that you have to send to good quality address lists. If your campaign is causing more than 5% permanent bounces, we will stop your campaign. This is because we want to prevent spamming and sending mail to random persons that don't want to receive your campaign.
|ID||Guid||The ID of the campaign|
|AccountID||Guid||The accountID of the campaign|
|Name||String||The name of the campaign|
The type of the campaign
1 = Newsletter campaign
2 = Test campaign
3 = Triggered campaign
4 = Test triggered campaign
5 = AB test campaign
The state of the campaign
1 = Saved, campaign is saved and can be send later.
2 = Ready for sending, campaign will be send right away or on the scheduled date.
3 = Picked up by queuer, this campaign is currently being picked up to send.
4 = Processed, this campaign has been processed.
5 = Stopped, this campaign has been stopped due to a too high bounce or complaint rate.
6 = OutOfCredits, this campaign has been stopped bacause there are not enough credits in your wallet.
7 = ABTestInProgress, this AB test campaign's test variants have been send and stats are being collected.
8 = PickedUpByFinisher, this AB test campaign is currently bein picked up to send the result mailing.
|ToAddressListID||Guid||The ID of the address list you want to send to.|
|ScheduledOn||DateTime||The datetime to schedule this campaign. This datetime is currently in the dutch timezone. Leave null if you want to send a campaign right away.|
|TestPercentage||Decimal||The test percentage multiplier to use for your AB test newletter. This should be at least 0.10 (10%) or higher. Leave null if you want to send a newsletter or triggered campaign.|
|TestDurationMinutes||Int||The test duration to use for your AB test newsletter, this sould be at least 240 minutes (4 hours). Leave null if you want to send a newsletter or triggered campaign.|
The type of the AB test metric
1 = ByOpenRate, the winning variation will be calculated by the open rate of an mailing as opens/sent.
2 = ByClickRate, the winning variation will be calculated by the click rate of an mailing as clicks/sent.
3 = ByClickThroughRate, the winning variation will be calculated by the click through rate of an mailing as clicks/opens.
Leave null if you want to send a newletter or triggered campaign.
|SendToRemainingOn||DateTime||The datetime to calculate the winning mailing and send it. This value is calculated automatically. This datetime is currently in the dutch timezone.|
|WinningVariationID||Guid||The ID of the best performing mailing based on the TestDuration and TestMetricType. This value will be filled when the campaign has the PickedUpByFinisher state.|
|TotalRecipients||Int||The total recipients of your campaign. This one will automatically be filled when you create the campaign based on your address list.|
|PreviewHtmlBody||String||A html with a preview of the campaign. In case of an AB test, version A will be shown when the test is running. When the test is finished, the winning variation will be shown.|
|CampaignTags||Array of objects||Campaign tags for this campaign. See campaign tag object definition.|
|CreatedOn||DateTime||When the campaign was created|
|ModifiedOn||DateTime||When the campaign was last modified|
|DeletedOn||DateTime||When the campaign was deleted|
|CampaignID||Guid||The ID of the campaign|
|Total||Int||Total number of recipients|
|Statistics||Array of object||Statistiscs per state, see statistic object definition|
|StatusID||Int||The ID of status|
|Status||String||The name of the status|
|NumberOfItems||Int||Number of items with this status|
|Link||String||The url of the link|
|NumberOfClicks||Int||The number of unique recipients that clicked this link|
|EmailAddress||String||The email address of the recipient|
|SentOn||DateTime||DateTime the mail was sent on|
|DeliveredOn||DateTime||DateTime the mail was delivered on|
|OpenedOn||DateTime||DateTime the user opened the mail|
|BouncedOn||DateTime||DateTime the mail has bounced on|
|ComplainedOn||DateTime||DateTime the user complained on|
|UnsubscribedOn||DateTime||DateTime the user unsubscirbed on|
|BlacklistedOn||DateTime||DateTime it was blacklisted on. This means this recipient has caused a permanent bounce before, or unsubscribed and we haven't send to it with this campaign|
|NumberOfClicks||Int||How many links a user has clicked.|