【发布时间】:2016-10-01 19:18:09
【问题描述】:
我查了很多文件,流程是这样的:
- 提交数据以创建广告系列、目标和 AdCreative
- 使用 AdCreative 的 ID 生成预览代码
- 在我的网站上显示预览代码(以显示给我的用户)
但我不想在预览前创建 Campaign、Targeting 和 AdCreative,只需提交 AdCreative 的原始数据即可获得预览代码。
我找到了那个 doc https://developers.facebook.com/docs/graph-api/reference/generatepreviews/,看起来他们可以解决我的问题……但它没有用。
我的测试数据是:https://graph.facebook.com/v2.6/generatepreviews?ad_format=RIGHT_COLUMN_STANDARD&creative={"object_story_spec":{"link_data":{"message":"msg","link":"http://kimkha.com?1","caption":"ccccc"}},"name":"NAME 1","body":"dddddd","title":"titititit","call_to_action_type":"OPEN_LINK","object_url":"http://kimkha.com"}&access_token=<token>
还有错误:
{
"error": {
"message": "(#275) Cannot determine the target object for this request. Currently supported objects include ad account, business account and associated objects.",
"type": "OAuthException",
"code": 275,
"fbtrace_id": "GeckbxpU9gr"
}
}
【问题讨论】:
-
什么不起作用?你得到什么错误信息?另外,请永远不要共享您的访问令牌。
-
谢谢,我更新了我的问题...请帮忙!
标签: facebook facebook-graph-api facebook-ads-api