Show Menu
主题×

创建目标

使用这些方法创建 RESTful API 目标。

支持的目标类型:仅URL和Cookie

使用可 POST 用的方法只能创 URL 建 cookie destinations 和创建。 当前,您不能使用这些 server-to-server destinations 方法进 REST API 行创建。 但是,相关的目标方 GET 法允许您检索有关在用户 server-to-server destinations 界面中创建的信息。

创建非序列URL目标

POST 种方法,允许您创建接受由单键值对(例如或)组成的段的 gender=male 目标 gender=female

请求

POST https://api.demdex.com/v1/destinations/

示例请求

此请求创建单个目标。 除非另有指明,否则所有请求值都是必需的。
{ 
   "name":"Sample URL Destination (not serialized)",
   "description":"",
   "destinationType":"PUSH",
   "serializationEnabled":false
}

响应

成功的请求将返 201 created 回和目标。
{ 
   "destinationType":"PUSH", 
   "destinationId":4033, 
   "dataSourceId":null, 
   "pid":1099, 
   "name":"Sample URL Destination (not serialized)", 
   "description":"", 
   "startDate":null, 
   "endDate":null, 
   "status":"ACTIVE", 
   "destinationType":"PUSH", 
   "createTime":1338937116000, 
   "updateTime":1338937116000, 
   "crUID":694, 
   "upUID":694, 
   "domainRestrictions":"all_domains", 
   "tagType":0, 
   "serializationEnabled":false, 
   "urlFormatString":"https://www.adobe.com/send?%ALIAS%", 
   "secureUrlFormatString":"https://www.adobe.com/send?%ALIAS%", 
   "delimiter":null,
   "mappings":null
} 

创建序列化URL目标

POST 种方法,允许您创建一个目标,该目标接受与单个键(例如, color=blue, red, green )关联的多个值。

请求

POST https://api.demdex.com/v1/destinations/

示例请求

为传入目 URL 标的键值对指定安全和分隔符。 除非另有指明,否则所有请求值都是必需的。
{ 
   "name":"Sample URL Destination (Serialized)",
   "description":"",
   "destinationType":"PUSH",
   "serializationEnabled":true,
   "urlFormatString":"https://www.adobe.com/send?data=%ALIAS%",
   "secureUrlFormatString":"https://www.adobe.com/%ALIAS%",
   "delimiter":","
}

响应

成功的更新将返回响应代 201 created 码和目标。
{ 
   "destinationType":"PUSH", 
   "destinationId":4034, 
   "dataSourceId":null, 
   "pid":1099, 
   "name":"Sample URL Destination (Serialized)", 
   "description":"", 
   "startDate":null, 
   "endDate":null, 
   "status":"active", 
   "destinationType":"PUSH", 
   "createTime":1338937420000, 
   "updateTime":1338937420000, 
   "crUID":694, 
   "upUID":694, 
   "domainRestrictions":"all_domains", 
   "tagType":0, 
   "serializationEnabled":true, 
   "urlFormatString":"https://www.adobe.com/send?%ALIAS%", 
   "secureUrlFormatString":"https://www.adobe.com/%ALIAS%", 
   "delimiter":"-", 
   "mappings":null 
}