List campaign activities

The ListCampaignActivities method returns a list of contacts that were sent a specified campaign after a certain dateTime.

Guidance Notes

It will only return up to 1000 records at a time. To iterate through the whole data set you should use the select and skip parameters. For example to select the first 1000 records in the data set you should set the select parameter to 1000 and the skip parameter to 0. To select the next 1000 records you should set the select parameter to 1000 and the skip parameter to 1000. You should continue to do this until 0 records are returned to you to get the whole data set.

If you are unsure about the server time please use GetServerTime.

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*#8209;908709770324@apiconnector.com required
password string This is the password from your API key. required
campaignId int This is the ID of the campaign you wish to query against. required
startDate dateTime This is the dateTime you wish to begin selecting data from required
select int This is a number which indicates the number of records you wish to select. This argument must no greater than 1000 required
skip int This is a number which is the number of records you want to skip; to select all records from 1001 to 2000: set this number to 1000. required

Return values

The result is an array of APIContactSummary objects, each consisting of the following:

email string The email address of the contact.
numOpens int The number of times the contact has been tracked as having opened the campaign.
numClicks int The number times the user has been tracked as having clicked on a link in the campaign.
unsubscribed boolean Whether or not the campaign triggered the user to unsubscribe.
numViews int The number of website pageviews tracked following a click in the campaign if you are using dotMailer pagetracking on your site.
numEstimatedForwards int The estimated number of times the contact forwarded the campaign (and it was subsequently opened).
numForwardToFriend int The number of addresses the contact used the "Forward to a Friend" link and functionality for.
numReplies int The number of replies received to the campaign sent to that contact.
contactId int The ID number for the contact.
dateFirstOpened dateTime The date and time of the first tracked open of the campaign for the contact.
dateLastOpened dateTime The date and time of the most recent tracked open of the campaign for the contact.
dateSent dateTime The date and time the campaign was sent to the contact. If it has been sent to the contact more than once, this is the most recent date and time it was sent.
firstOpenIp string The IP address the contact was first tracked as having opened the campaign at.
firstOpenUserAgent string This element is a legacy feature and will be returned empty.
softBounced boolean Whether or not a soft bounce was received for the contact for this campaign.
hardBounced boolean Whether or not a hard bounce was received for the contact for this campaign.

Error responses

  • ERROR_CAMPAIGN_INVALID
  • ERROR_CAMPAIGN_NOT_FOUND
  • ERROR_APIUSAGE_EXCEEDED
  • ERROR_INVALID_LOGIN
  • ERROR_PARAMETER_INVALID
  • ERROR_SYSTEM_SERVICETEMPORARILYUNAVAILABLE
  • ERROR_UNKNOWN

Request

Example of use in C# .NET

Sample request

Sample response

Get started with dotMailer:

Small & Medium businesses Large businesses
Call the team on 0845 337 9170
What our clients say:

“dotMailer has changed our complete marketing process for the better. It's one of the easiest apps I have used and allows us to do things we have only dreamed of before."

Amberley Shermon, Cazenove+Loyd