Facebook广告1634011错误:“给定操作类型的属性选择器无效”

时间:2015-02-19 08:01:06

标签: python facebook facebook-graph-api ads facebook-ads-api

当我尝试使用facebook ads python sdk创建广告(广告组)时,我一直收到此错误消息。这是我的设置和我想要实现的结果:

  • 我已经有一个广告系列(广告系列组)
  • 我已经有了一个广告
  • 我想要的出价类型是CPA
  • 我可以创建绑定到未发布帖子的广告素材
  • 但是当我想创建绑定到广告素材的广告组时,我收到错误:给定操作类型的无效属性选择器。属性选择器不会根据规范中的操作类型映射到任何已知对象。

我首先想到的是没有以正确的方式创建某些东西(例如帖子不存在)。但是我检查了三倍,没有成功......

以下是来自python客户端的整个回溯:

FacebookRequestError: Call was not successful 
Request:
    {'files': {}, 'path': 'https://graph.facebook.com/v2.2/act_xxxxxxx/adgroups', 'params': {'name': 'SDK ad name', 'adgroup_status': 'ACTIVE', 'objective': 'WEBSITE_CLICKS', 'creative': '{"creative_id":"xxxxxxx"}', 'conversion_specs': '[{"action.type":"link_click","post.wall":xxxxxxxx,"post_id":"xxxxxxx"}]', 'campaign_id': u'xxxxxxxx'}, 'method': 'POST', 'headers': {'User-Agent': 'fb-python-ads-api-sdk-2.2.5'}}
Response:
    HTTP Status: 500
    Headers:{'content-length': '307', 'facebook-api-version': 'v2.2', 'expires': 'Sat, 01 Jan 2000 00:00:00 GMT', 'x-fb-debug': 'xxxxxxx', 'x-fb-rev': '1604454', 'connection': 'keep-alive', 'pragma': 'no-cache', 'cache-control': 'no-store', 'date': 'Thu, 19 Feb 2015 01:16:54 GMT', 'access-control-allow-origin': '*', 'content-type': 'application/json; charset=UTF-8', 'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "Invalid parameter"'}
    Body: {"error":{"message":"Invalid parameter","type":"FacebookApiException","code":100,"error_subcode":1634011,"is_transient":false,"error_user_title":"Invalid property selector given action types","error_user_msg":"The property selectors don't map to any known objects based on the action type(s) in the spec."}}

我有点卡在这里,有没有人有线索?

谢谢: - )

1 个答案:

答案 0 :(得分:0)

您的转换规范不正确

你有

[{"action.type":"link_click","post.wall":xxxxxxxx,"post_id":"xxxxxxx"}]

要选择页面帖子,应该是:

[{"action.type":"link_click","post.wall":xxxxxxxx,"post":"xxxxxxx"}]

https://developers.facebook.com/docs/marketing-api/action-specs/v2.2有您可以关注的示例