背景
我正在测试的第一件事是创建和上传自定义受众(CSV 文件上传)并在不同s拥有的s之间共享它。ad accountBusinessManager
从我到目前为止收集的信息来看,创建自定义受众有 2 个步骤
为了创建一个空的自定义受众,我使用cURL来自文档的请求
curl -X POST \
-F 'name="My new Custom Audience"' \
-F 'subtype="CUSTOM"' \
-F 'description="People who purchased on my website"' \
-F 'customer_file_source="USER_PROVIDED_ONLY"' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v7.0/act_<AD_ACCOUNT_ID>/customaudiences
Run Code Online (Sandbox Code Playgroud)
这给了我
{
"error": {
"message": "Permissions error",
"type": "OAuthException",
"code": 200,
"error_subcode": 1870050,
"is_transient": false,
"error_user_title": "Business Account Needed to Create/Edit This …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用沙盒广告帐户创建自定义受众。以下请求:
curl \
-F 'name=My new CA' \
-F 'subtype=CUSTOM' \
-F 'description=People who bought from my website' \
-F 'access_token=<<my_token>>' \
https://graph.facebook.com/v2.8/act_<<my_account_id>>/customaudiences
Run Code Online (Sandbox Code Playgroud)
失败:
{
"error": {
"message": "(#2655) Terms of service has not been accepted. To accept, go to https://www.facebook.com/ads/manage/customaudiences/tos.php?act=<<my_account_id>>",
"type": "OAuthException",
"code": 2655
}
}
Run Code Online (Sandbox Code Playgroud)
但与服务条款页面的链接无效。此外,我不能使用 Ads Manager 接受 ToS,因为那里只有非沙盒帐户可用。