我正在尝试使用 facebook ads api 查询 facebook 关键字。
我的问题是包含括号的关键字。我urlencode
在将它发送到 facebook 之前的字符串,但它仍然无法正常工作。
例如,如果我想查询居住在美国并喜欢 Apple Inc. 的用户,我会查询以下 url:
https://graph.facebook.com/act_19720295/targetingsentencelines?targeting_spec={%22countries%22:[%22US%22],%22keywords%22:[%22Apple+Inc.%22]}&access_token=MY_ACCESS_TOKEN
结果如下:
{
"params": {
"countries": [
"US"
],
"keywords": [
"apple inc"
]
},
"targetingsentencelines": [
"who live in the United States",
"who like apple inc"
]
}
如果我添加另一个包含括号“App Store (iOS)”的关键字,facebook 会忽略它:
https://graph.facebook.com/act_19720295/targetingsentencelines?targeting_spec={%22countries%22:[%22US%22],%22keywords%22:[%22Apple+Inc.%22,%22App+Store+%28iOS%29%22,%22%22]}&access_token=MY_ACCESS_TOKEN
我仍然得到相同的结果:
{
"params": {
"countries": [
"US"
],
"keywords": [
"apple inc"
]
},
"targetingsentencelines": [
"who live in the United States",
"who like apple inc"
]
}
有谁知道为什么?