EMDocumentsCreateCreativeInCampaign Method (DMToken, String, String, EMDocumentType, Int32, Boolean, Boolean, EMContent, EMContent, Boolean, SqlConnection, SqlTransaction, String, String, String)

Alterian Email Manager 6.2.3 SDK Help File
Create a new Creative in a Campaign, supplying the Connection and Transaction context.

Namespace:  DMLibrary
Assembly:  DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420

Syntax
public static int CreateCreativeInCampaign(
	DMToken token,
	string creativeName,
	string description,
	EMDocumentType documentType,
	int campaignID,
	bool insertUnsubText,
	bool insertMsgOpenAndAttachments,
	EMContent htmlContent,
	EMContent textContent,
	bool useSameEncoding,
	SqlConnection connection,
	SqlTransaction transaction,
	out string appliedHtmlEncoding,
	out string appliedTextEncoding,
	out string warning
)

Parameters

token
Type: DMToken
Authentication Token.
creativeName
Type: SystemString
The new Creative's Name.
description
Type: SystemString
The new Creative's Description.
documentType
Type: DMLibraryEMDocumentType
The new Creative's Type.
campaignID
Type: SystemInt32
The Id of the Campaign that the new Creative will be contained in.
insertUnsubText
Type: SystemBoolean
Insert Unsubscribe Text Flag.
insertMsgOpenAndAttachments
Type: SystemBoolean
Insert MessageOpen and Attachments
htmlContent
Type: DMLibraryEMContent
HTML Content.
textContent
Type: DMLibraryEMContent
Text Content.
useSameEncoding
Type: SystemBoolean
connection
Type: System.Data.SqlClientSqlConnection
SQL Connection
transaction
Type: System.Data.SqlClientSqlTransaction
SQL Transaction.
appliedHtmlEncoding
Type: SystemString
appliedTextEncoding
Type: SystemString
warning
Type: SystemString

Return Value

Type: Int32
The Id of the new Creative.
See Also