【问题标题】:Facebook Marketing API error, You must select an object to promoteFacebook Marketing API 错误,您必须选择要推广的对象
【发布时间】:2016-09-14 12:23:19
【问题描述】:

我正在尝试通过 facebook graph API 创建广告。我能够成功地创建活动、广告集和创意。尝试制作广告时,出现以下错误。

{"error"=>{"message"=>"Invalid parameter", "type"=>"OAuthException", "code"=>100, "error_subcode"=>1487930, "is_transient"=>false, "error_user_title"=>"You Must Select an Object to Promote", "error_user_msg"=>"Your campaign must include an ad set with a selected object to promote related to your objective (ex: Page, URL, event). Please update your ad set to continue.", "fbtrace_id"=>"BVtDHG2rTNn"}}

我使用以下参数对端点https://graph.facebook.com/v2.7/act_XXXXXXX/ads 进行了POST 调用:

{:name=>"Buy new Item", :object_story_spec=>{:link_data=>{:call_to_action=>{:value=>{}, :type=>"LEARN_MORE"}, :name=>"Buy new Item", :message=>"amazing Items for you", :image_hash=>"7cc87683d1b75492622a82a158790dcb", :link=>"www.xyz.com"}, :page_id=>"123123123"}, :access_token=>"xxxxxxxxxxxxxxxxxxxx"}

谁能帮我解决这个问题?

附:这个SO question also faces the same problem on PHP SDK

【问题讨论】:

  • 这个问题你解决了吗?如果是,请。帮助。

标签: facebook facebook-graph-api


【解决方案1】:

如果在创建广告对象期间未提供 AdCreative id,也会引发此错误。

您正在尝试将 AdCreative 参数发布到广告端点。

curl \
  -F 'name=My Ad' \
  -F 'adset_id=<AD_SET_ID>' \
  -F 'creative={"creative_id":"<CREATIVE_ID>"}' \
  -F 'status=PAUSED' \
  -F 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.8/act_<AD_ACCOUNT_ID>/ads

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多