通过API创建Facebook广告时enroll_status参数报错求助
Facebook营销API创建广告报错排查(已添加Standard Enhancements OPT_OUT仍失败)
已添加standard_enhancements > enroll_status > OPT_OUT参数,但创建广告时仍提示未提供该参数,问题与Facebook开发者社区相关帖子情况类似。
请求参数片段
{"object_story_spec": {"page_id": "xxxxx","video_data": {"call_to_action": {"type": "INSTALL_APP","value": {"link": ""}},"image_hash": "{result=videoThumbnailRequestxxxxxxxxxxxxx:$.images.*.hash}","title": "","video_id": "{result=videoRequestxxxxxxxxxxxxx:$.id}"}},"title": "test","body": "test","degrees_of_freedom_spec": {"creative_features_spec": {"standard_enhancements": {"enroll_status": "OPT_OUT"}}}}
报错信息
[{"error": {"message": "Invalid parameter","type": "OAuthException","code": 100,"error_subcode": 3858082,"is_transient": false,"error_user_title": "Creative Must Provide enroll_status for Standard Enhancements","error_user_msg": "This creative is eligible for Standard Enhancements, but enroll_status was not provided. Please choose whether you want to turn on standard enhancements or not. Learn more here: https://fburl.com/hyth50xo","fbtrace_id": "AZGGOCEVV3jyJ09T0SV0yXO"}},{"error": {"message": "Request aborted. This could happen if a dependent request failed or the entire request timed out.","type": "FacebookApiException","code": 960,"fbtrace_id": "A1m-jT3shoLxOqMFdVxhxdU"}}]
排查建议
- 检查参数层级:确认
standard_enhancements严格嵌套在degrees_of_freedom_spec > creative_features_spec下,层级错位会导致API无法识别参数。 - 验证参数值大小写:确保
enroll_status的值为大写的OPT_OUT或OPT_IN,API对大小写敏感,非大写值会被判定为无效。 - 多创意场景检查:如果请求包含多个创意对象,每个创意都需要单独配置
standard_enhancements,不能仅在全局配置。 - 确认API版本:切换到文档推荐的稳定版本(如v18.0及以上),旧版本可能存在参数识别兼容问题。
- 变量替换验证:检查请求中
{result=videoThumbnailRequest...}这类占位符是否已替换为实际有效值,未替换的占位符可能导致API解析请求出错,间接引发参数未识别报错。
内容的提问来源于stack exchange,提问作者Blues Li
相关产品推荐
相关产品推荐

