用户行为人群
对于
对于
接下来,将分别介绍两种人群提取方式:
行为方式提取人群
行为方式提取人群对应的请求示例如下:
curl 'https://api.e.qq.com/v1.1/custom_audiences/add?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-H "Content-Type: application/json" \
-d '{
"account_id": 25610,
"name": "jilin-action0519-ios",
"type": "USER_ACTION",
"audience_spec": {
"user_action_spec": {
"user_action_set_id": 1106173386,
"match_rule_type": "ACTION",
"action_match_rule": {
"action_type": "INITIATE_CHECKOUT",
"param_matcher_group": [
{
"param_matcher": [
{
"param_name": "produce_name",
"param_value": "shoe",
"operator": "EQ"
},
{
"param_name": "brand",
"param_value": "KISSCAT",
"operator": "EQ"
}
]
}
]
},
"time_window": 150
}
}
}'
应答示例:
{
"code": 0,
"message": "ok",
"data": {
"audience_id": 2837392
}
}
URL方式提取人群
URL方式提取人群对应的请求示例如下:
curl 'https://api.e.qq.com/v1.1/custom_audiences/add?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-H "Content-Type: application/json" \
-d '{
"account_id": 25610,
"name": "jilin-web-someurl0519",
"type" : "USER_ACTION",
"audience_spec" : {
"user_action_spec": {
"user_action_set_id" : 1105929547,
"match_rule_type" : "URL",
"url_match_rule" : {
"url_matcher_group":[
{
"url_matcher":[
{"param_value":"taobao","operator":"CONTAIN"},
{"param_value":"360","operator":"NOT_CONTAIN"}
]
}
]
},
"time_window": 180
}
}
}'
应答示例:
{
"code": 0,
"message": "ok",
"data": {
"audience_id": 2837392
}
}
收到接口返回的用户行为人群id后,您就可以将它用于广告定向中了,关于如何使用人群定向,详见【广告-定向】页面介绍。
有关用户行为人群读写接口的更详细说明,可以参考 接口清单-Audience。