在Facebook Marketing API上创建广告素材时缺少推荐对象

时间:2017-07-16 18:31:40

标签: facebook facebook-graph-api facebook-javascript-sdk facebook-marketing-api

我尝试使用以下HTTP请求创建新的广告素材

response = HTTParty.post(
        "https://graph.facebook.com/v2.9/act_#{account_id}/adcreatives",
        :query => {
            :ad_format => "DESKTOP_FEED_STANDARD",
            :access_token => @ads_access_token,
            :creative => {
                :object_story_spec => {
                    :object_id => page_id,
                    :link_data => {
                        :call_to_action => {
                            :type => ad_cta,
                            :value => {
                                :link => ad_url
                            }
                        },
                        :link => ad_url,
                        :message => ad_text,
                        :description => ad_description,
                        :name => ad_headline,
                        :picture => ad_image_url
                    },
                    :page_id => "233558376717908"
                }
            }
        }
    )

但遗憾的是我继续收到以下错误:

{"error"=>
  {"message"=>"Invalid parameter",
   "type"=>"OAuthException",
   "code"=>100,
   "error_subcode"=>1487930,
   "is_transient"=>false,
   "error_user_title"=>"Promoted Object Is Missing",
   "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"=>"DpnhEGhLaSj"}}

我确实为adset设置了一个推广对象,但我不明白它与adcreative有什么关系。

谢谢!

0 个答案:

没有答案