EMDocumentsCreateCreativeInCampaign Method (DMToken, String, String, EMDocumentType, Int32, Boolean, Boolean, EMContent, EMContent, Boolean)
|
Alterian Email Manager 6.2.3 SDK Help File
Creates a new Creative in a Campaign.
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 = true
)
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,
Optional useSameEncoding As Boolean = true
) 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 = true
)
static member CreateCreativeInCampaign :
token : DMToken *
CreativeName : string *
Description : string *
documentType : EMDocumentType *
campaignID : int *
insertUnsubText : bool *
insertMsgOpenAndAttachments : bool *
htmlContent : EMContent *
textContent : EMContent *
?useSameEncoding : bool
(* Defaults:
let _useSameEncoding = defaultArg useSameEncoding true
*)
-> int
DMLibrary.EMDocuments.CreateCreativeInCampaign = function(token, CreativeName, Description, documentType, campaignID, insertUnsubText, insertMsgOpenAndAttachments, htmlContent, textContent, useSameEncoding);
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 will contain the new Creative. - 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 (Optional)
- Type: SystemBoolean
Use same encoding for HTML and Text Content flag
Return Value
Type:
Int32New Creative Id.
See Also