EMDocumentsGetCreativeIDFromTemplateIDs Method
|
Alterian Email Manager 6.2.3 SDK Help File
Gets the CreativeID that exactly matches to the provided Html and Text Template Ids.
If no Creative within the given Campaign exactly matches these IDs, CreativeID = 0 will be returned
and TemplateMappingError will be populated with a friendly error message.
If a Creative is found, TemplateMappingError will be an empty string.
Namespace:
DMLibraryAssembly:
DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420
Syntaxpublic static int GetCreativeIDFromTemplateIDs(
DMToken token,
int campaignID,
int htmlTemplateID,
int textTemplateID,
out string templateMappingError,
SqlConnection passedInConnection = null,
SqlTransaction passedInTransaction = null
)
Public Shared Function GetCreativeIDFromTemplateIDs (
token As DMToken,
campaignID As Integer,
htmlTemplateID As Integer,
textTemplateID As Integer,
<OutAttribute> ByRef templateMappingError As String,
Optional passedInConnection As SqlConnection = Nothing,
Optional passedInTransaction As SqlTransaction = Nothing
) As Integer
public:
static int GetCreativeIDFromTemplateIDs(
DMToken^ token,
int campaignID,
int htmlTemplateID,
int textTemplateID,
[OutAttribute] String^% templateMappingError,
SqlConnection^ passedInConnection = nullptr,
SqlTransaction^ passedInTransaction = nullptr
)
static member GetCreativeIDFromTemplateIDs :
token : DMToken *
campaignID : int *
htmlTemplateID : int *
textTemplateID : int *
templateMappingError : string byref *
?passedInConnection : SqlConnection *
?passedInTransaction : SqlTransaction
(* Defaults:
let _passedInConnection = defaultArg passedInConnection null
let _passedInTransaction = defaultArg passedInTransaction null
*)
-> int
DMLibrary.EMDocuments.GetCreativeIDFromTemplateIDs = function(token, campaignID, htmlTemplateID, textTemplateID, templateMappingError, passedInConnection, passedInTransaction);
Parameters
- token
- Type: DMToken
Authentication token. - campaignID
- Type: SystemInt32
ID of Campaign containing Creatives/Templates. - htmlTemplateID
- Type: SystemInt32
ID of the Html Template (or 0). - textTemplateID
- Type: SystemInt32
ID of the Text Template (or 0). - templateMappingError
- Type: SystemString
Output parameter: Error text if Creative cannot be exactly matched. - passedInConnection (Optional)
- Type: System.Data.SqlClientSqlConnection
Optional Existing Sql Connection to use. - passedInTransaction (Optional)
- Type: System.Data.SqlClientSqlTransaction
Optional Existing Sql Transaction to use.
Return Value
Type:
Int32
See Also