在以下两种情况下,需要创建目标映射:
目标映射创建向导将帮助您创建使用自定义表所需的所有架构。
在创建目标映射之前,需要进行多种配置,以便Adobe Campaign能够使用新的收件人数据架构进行操作。
要执行此操作,请应用以下步骤:
创建新的数据架构,该架构集成了您要使用的自定义表的字段。
有关详细信息,请参阅 架构引用(xtk:srcSchema).
在我们的示例中,我们将创建一个客户架构,一个包含以下字段的非常简单的表:ID、名字、姓氏、电子邮件地址、手机号码。 其目的是能够向存储在此表中的个人发送电子邮件或短信警报。
示例架构(cus:indivial)
<srcSchema name="individual" namespace="cus" label="Individuals">
<element name="individual">
<key name="id" internal="true">
<keyfield xpath="@id"/>
</key>
<attribute name="id" type="long" length="32"/>
<attribute name="lastName" type="string" length="100"/>
<attribute name="firstName" type="string" length="100"/>
<attribute name="email" type="string" length="100"/>
<attribute name="mobile" type="string" length="100"/>
</element>
</srcSchema>
使用="true"属性将架构声明为外部视图。 请参阅 视图属性.
<srcSchema desc="External recipient table" namespace="cus" view="true"....>
...
</srcSchema>
如果需要添加直邮地址,请使用以下类型的结构:
<element advanced="true" name="postalAddress" template="nms:common:postalAddress">
<attribute expr="SubString(JuxtWords(Smart([../infos/@firstname]), Upper([../infos/@name])), 1, 80)"
name="line1"/>
<attribute expr="Upper([../address/@line2])" name="line2"/>
<attribute expr="Upper([../address/@line])" name="line3"/>
<attribute expr="Upper([../address/@line])" name="line4"/>
<attribute expr="Upper([../address/@line])" name="line5"/>
<attribute expr="Upper([../address/@line])" name="line6"/>
<attribute _operation="delete" name="line7"/>
<attribute _operation="delete" name="addrErrorCount"/>
<attribute _operation="delete" name="addrQuality"/>
<attribute _operation="delete" name="addrLastCheck"/>
<element expr="@line1+'n'+@line2+'n'+@line3+'n'+@line4+'n'+@line5+'n'+@line6"
name="serialized"/>
<attribute expr="AllNonNull2([../address/@line], [../infos/@name])" name="addrDefined"/>
</element>
单击 Administration > Campaign management > Target mappings 节点。
单击 新建 按钮以打开“目标映射创建向导”。
输入 标签 字段,然后选择之前在 定向维度 字段。
在 编辑地址表单 窗口中,选择与各种投放地址匹配的架构字段。 在这里,我们能够映射 @email 和 @mobile 字段。
在以下 存储 窗口,输入 扩展架构的后缀 字段以区分新架构与Adobe Campaign提供的现成架构。
单击 Define new additional fields ,以选择要在投放中定位的维度。
默认情况下,排除管理会存储在与消息相同的表中。
检查 生成用于跟踪的存储架构 框中,选择是否要为链接到目标映射的跟踪配置存储。
Adobe Campaign不支持多个收件人模式(称为定位模式),这些模式链接到相同的broadlog和/或跟踪日志模式。 否则,这可能会导致以后的数据协调出现异常。 有关此内容的更多信息,请参阅 推荐和限制 页面。
在 扩展 窗口中,选择要生成的可选方案(可用方案列表取决于在Adobe Campaign平台上安装的模块)。
单击 保存 按钮来关闭向导。
该向导使用启动架构创建新目标映射工作所需的所有其他架构。
可使用新架构作为投放目标的两种方式: