【问题标题】:Facebook Adset Creation Fails for Messenger Ad on a Carousel Creative轮播广告素材上的 Messenger 广告的 Facebook 广告集创建失败
【发布时间】:2017-06-23 12:40:44
【问题描述】:

我正在通过发布到 adsets 端点(营销 API)来创建广告集。 它返回给我以下错误:

{
  "error": {
    "message": "An unknown error occurred",
    "type": "OAuthException",
    "code": 1,
    "error_subcode": 1815652,
    "is_transient": false,
    "error_user_title": "Missing Messenger Destination in Child Item",
    "error_user_msg": "To use Messenger as destination, all children     items in the carousel ads should have messenger destination.",
    "fbtrace_id": "AdulKVKescc"
  }
}

广告素材是一个轮播。 旋转木马的每个孩子(卡片)都有正确的call_to_action,即'{type:"LEARN_MORE",value:{app_destination:"MESSENGER"}}'

我尝试了在子元素中放置 link 而不是 link 的各种组合。我还尝试放置一个 m.me 链接,但在创建广告素材本身时会引发不同的错误。

我正在使用adcreatives 端点来创建我的广告素材...

关于链接值应该是什么的任何准则? Facebook 文档说它被忽略了。如果忽略,为什么会出错?

【问题讨论】:

    标签: facebook facebook-marketing-api


    【解决方案1】:

    该错误有点误导,因为 child_attachments 都包含 call_to_action,但您还必须将相同的 call_to_action 添加到 link_data 或 video_data 中的广告素材(取决于广告素材的类型)。

    【讨论】:

      【解决方案2】:

      将 call_to_action 添加到链接数据。 信贷克里斯西蒙斯

      # use picture or image_hash
      fb_dummy_image = 'https://i.ytimg.com/vi/eGKWS6_187s/maxresdefault.jpg'
      image_hash = "164d943385c130d64e702664c9ab1798"
      
      data = {
          "access_token": SELLIO_AD_SERVER_TOKEN,
          "name": "Sample Creative",
          "object_story_spec": {
              "link_data": {
              "call_to_action": {"type": "LEARN_MORE", "value": {"app_destination": "MESSENGER"}},
                  "child_attachments": [
                      {
                          "description": "$800.99",
                          "image_hash": image_hash,
                          "link": "https://www.example.com",
                          "name": "A1",
                          "call_to_action": {
                              "type": "LEARN_MORE",
                              "value": {
                                  "app_destination": "MESSENGER",
                              }
                          },
                      },
                      {
                          "description": "$400.99",
                          "image_hash": image_hash,
                          "link": "https://www.example.com",
                          "name": "A2",
                          "call_to_action": {
                              "type": "LEARN_MORE",
                              "value": {
                                  "app_destination": "MESSENGER",
                              }
                          },
                      },
                      {
                          "description": "$300.99",
                          "picture": fb_dummy_image,
                          "link": "https://www.messenger.com/t/xxxxxxxxxxxx",
                          "name": "A3",
                          "call_to_action": {
                              "type": "LEARN_MORE",
                              "value": {
                                  "app_destination": "MESSENGER",
                              }
                          }
                      }
                  ],
                  "link": "https://www.messenger.com/t/xxxxxxxxxx",
                  "page_welcome_message": '{"user_edit": true, "message": {"attachment": {"type": "template", "payload": {"template_type": "generic", "elements": [{"buttons": [{"url": "http://www.example.com/", "type": "web_url", "title": "View Website"}, {"type": "postback", "payload": "USER_DEFINED_PAYLOAD", "title": "Start Chatting"}], "subtitle": "Optional: Enter a subtitle to provide more information", "image_url": "https://image.ibb.co/bz5t6Q/placeholder.png", "title": "Enter a title to accompany your image"}, {"buttons": [{"url": "http://www.example.com/", "type": "web_url", "title": "View Website"}, {"type": "postback", "payload": "USER_DEFINED_PAYLOAD", "title": "Start Chatting"}], "subtitle": "2nd product", "image_url": "https://image.ibb.co/bz5t6Q/placeholder.png", "title": "a2"}, {"buttons": [{"url": "http://www.example.com/", "type": "web_url", "title": "View Website"}, {"type": "postback", "payload": "USER_DEFINED_PAYLOAD", "title": "Start Chatting"}], "subtitle": "3rd product", "image_url": "https://image.ibb.co/bz5t6Q/placeholder.png", "title": "a3"}]}}}}'
              },
              "page_id": "xxxxxxxxxxx"
          }
      }
      

      然后以MESSAGES为目标制作广告系列

      def create_campaign(ad_account_id, campaign_name):
      my_account = AdAccount(ad_account_id)
      campaign = Campaign(parent_id=my_account.get_id_assured())
      
      campaign.update({
          Campaign.Field.name: campaign_name,
          Campaign.Field.objective: 'MESSAGES'
      })
      
      campaign.remote_create(params={
          'status': Campaign.Status.paused,
      })
      logging.debug(campaign)
      return campaign.get_id()
      

      【讨论】:

        猜你喜欢
        • 2019-01-20
        • 2018-01-29
        • 1970-01-01
        • 2016-08-17
        • 1970-01-01
        • 1970-01-01
        • 2015-10-25
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多