通过API创建Facebook广告时提示“enroll_status was notprovided”

Blu*_* Li 5 facebook ads

像https://developers.facebook.com/community/threads/1369234493639891/这样的问题

我添加了参数 standard_enhancements > enroll_status > OPT_OUT 但仍然无法创建广告。部分请求参数如下:

{
  "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"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

错误如下:

[
  {
    "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"
    }
  }
]
Run Code Online (Sandbox Code Playgroud)

https://developers.facebook.com/docs/marketing-api/advantage-catalog-ads/standard-enhancements

Nil*_*gal 4

这个问题已经被 Meta 修复了。请检查您是否遇到同样的问题。您可以通过检查下面的示例请求正文来验证,它对我来说工作正常。

{
    'name': 'test - Creative',
    'object_story_spec': {
        'page_id': '<page_id>',
        'link_data': {
            'description': '',
            'image_hash': '<image_hash>',
            'link': '<link>',
            'message': 'message',
            'name': 'headline',
            'call_to_action': {
                'type': 'LEARN_MORE',
                'value': {
                    'link': '<link>',
                    'link_caption': ''
                }
            }
        }
    },
    'degrees_of_freedom_spec': {
        'creative_features_spec': {
            'standard_enhancements': {
                'enroll_status': 'OPT_OUT'
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)