GetCampaignActivitiesSinceDate

Gets a list of contacts who were sent a campaign, and retrieves only those contacts who showed activity (e.g. they clicked, opened) after a specified date

This method returns a list of contacts along with a summary report of each contact's activity in relation to a specified campaign since a specified date.

The select parameter requires a number between 1 and 1000 (0 is not a valid number). You may only select a maximum of 1000 results in a single request.

The skip parameter should be used in tandem with the select parameter when wanting to iterate through a whole data set. If you want to select the next 1000 records you should set the select parameter to 1000 and the skip parameter to 1000, which will return records 1001 to 2000. You should continue to do this until 0 records are returned to retrieve the whole data set.

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

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Campaign ID - required; integer
  • Start date - required; dateTime
  • Select - optional; integer
  • Skip - optional; integer

Output parameters

  • GetCampaignActivitiesSinceDateResult - array of CampaignContactSummary
    • CampaignContactSummary
      • Contact Id - integer
      • Email - string
      • NumOpens - integer
      • NumPageViews - integer
      • NumClicks - integer
      • NumForwards - integer
      • NumEstimatedForwards - integer
      • NumReplies - integer
      • DateSent - dateTime
      • DateFirstOpened - dateTime
      • DateLastOpened - dateTime
      • FirstOpenIp - string
      • Unsubscribed - boolean
      • SoftBounced - boolean
      • HardBounced - boolean

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var campaignId = 1;
	var startDate = new DateTime(2015, 01, 01, 00, 00, 00, DateTimeKind.Utc);
	var select = 1000;
	var skip = 0;
	
	var campaignActivities = client.GetCampaignActivitiesSinceDate(campaignId, startDate, select, skip);
}