Adds a document to a campaign as an attachment

This operation adds a document to a campaign as an attachment.

You will require the permission to allow attachments to be sent with campaigns enabled on your account before you can use this feature.

SOAP action:


Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Campaign ID - required; integer
  • Document ID - required; integer
  • Name - optional; string
  • FileName - optional; string
  • FileSize - optional; integer
  • DateCreated - optional; dateTime
  • DateModified - optional; dateTime

Output parameters


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

	var campaignId = 1;
	var folderId = 1;
	var document = client.GetDocuments(folderId)[0];
	client.AttachDocumentToCampaign(campaignId, document);