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:
DMLibraryAssembly:
DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420
Syntaxpublic 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
)
Public Shared Function CreateCreativeInCampaign (
token As DMToken,
creativeName As String,
description As String,
documentType As EMDocumentType,
campaignID As Integer,
insertUnsubText As Boolean,
insertMsgOpenAndAttachments As Boolean,
htmlContent As EMContent,
textContent As EMContent,
useSameEncoding As Boolean,
connection As SqlConnection,
transaction As SqlTransaction,
<OutAttribute> ByRef appliedHtmlEncoding As String,
<OutAttribute> ByRef appliedTextEncoding As String,
<OutAttribute> ByRef warning As String
) As Integer
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,
[OutAttribute] String^% appliedHtmlEncoding,
[OutAttribute] String^% appliedTextEncoding,
[OutAttribute] String^% warning
)
static member CreateCreativeInCampaign :
token : DMToken *
creativeName : string *
description : string *
documentType : EMDocumentType *
campaignID : int *
insertUnsubText : bool *
insertMsgOpenAndAttachments : bool *
htmlContent : EMContent *
textContent : EMContent *
useSameEncoding : bool *
connection : SqlConnection *
transaction : SqlTransaction *
appliedHtmlEncoding : string byref *
appliedTextEncoding : string byref *
warning : string byref -> int
DMLibrary.EMDocuments.CreateCreativeInCampaign = function(token, creativeName, description, documentType, campaignID, insertUnsubText, insertMsgOpenAndAttachments, htmlContent, textContent, useSameEncoding, connection, transaction, appliedHtmlEncoding, appliedTextEncoding, 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:
Int32The Id of the new Creative.
See Also