我正在尝试使用 facebook java sdk 来创建广告。我可以创建 AdCampaign 和 AdSet,但是当我尝试创建 AdCreative 时,它返回错误:
{
"error": {
"message": "Application does not have permission for this action",
"type": "OAuthException",
"code": 10,
"error_subcode": 1341012,
"is_transient": false,
"error_user_title": "No permission to access this profile",
"error_user_msg": "You don't have required permission to access this profile",
"fbtrace_id": "Gvc9OPtfxrb"
}
Run Code Online (Sandbox Code Playgroud)
}
为了创建 APIContext,我使用了访问令牌,它是从应用程序设置中的业务设置和应用程序机密下的“系统用户”部分生成的。为了创建 AdAccount,我使用了 Ad Account Id。
我想我错过了一些 Id 或 Token,因为我可以去 Ads Manager 并从 ui 中做我需要的一切,所以看起来我有足够的权限。
你能帮我弄清楚我做错了什么吗?