我正在开发一款应用程序,其中包括通过API创建facebook广告。最近我尝试创建一个“点击信使”类型的广告 - 即行动呼吁按钮应该启动与客户页面的聊天。
我已按照本指南操作: https://developers.facebook.com/docs/marketing-api/guides/messenger-sponsored/
做了以下事情:
我认为问题是在我的广告素材中设置的,如下所示:
` {
"creative_id": <CREATIVE_ID>,
"id": <ID>,
"name": <NAME>,
"object_story_spec": {
"page_id": <PAGE_ID>,
"video_data": {
"call_to_action": {
"type": "SHOP_NOW",
"value": {"app_destination":"MESSENGER"}
},
"image_url":<IMAGE_URL>,
"link_description": "",
"message": xxxxxxxxx,
"video_id": xxxxxxxx
}
},
"object_type": "VIDEO",
"title": "TITLE",
"video_id": <VIDEO_ID>
}
我用占位符替换了真实数据,但我确实从控制台复制粘贴它。
基本上我做了导游所说的一切,我得到的是 -
`{
"error": {
"message": "Invalid parameter",
"error_user_title": "Creative and optimization_goal mismatch",
"is_transient": false,
"type": "OAuthException",
"error_user_msg": "The creative type contradicts to the
optimization goal. The type of your creative has to be consistent with your optimization goal. Also please make sure your optimization goal is not NONE.",
"code": 100,
"fbtrace_id": "A1AR9Egck+G",
"error_subcode": 1815159
}
`
任何见解都将受到高度赞赏 - (: