如何在Facebook营销API目标规格中设置性别?
我已尝试设置性别,但我发现性别不是有效的目标规格字段错误。
targeting_spec = {"geo_locations":
{
"location_types": ["recent"],
"custom_locations": [
{
"latitude": 14.5764,
"longitude": 121.0851,
"radius": 17
}
]
},
"age_min": 18,
"age_max": 35,
"gender": "male", // Setting gender, doesn't work
"flexible_spec": [
{
"interests": [
{"id": "6002998074973", "name": "BTS"}
]
},
{
"interests": [
{"id": "6005882720291", "name": "Data Science"}
]
}
]
}发布于 2018-11-07 17:05:52
找到了!它应该是性别。
这些值包括:
gender: [0] # All
gender: [1] # Men
gender: [2] # Women发布于 2019-04-26 23:58:41
来自https://developers.facebook.com/docs/marketing-api/buying-api/targeting/
性别:数组
例如:
targeting: {
genders: [1]
...https://stackoverflow.com/questions/53186014
复制相似问题