gpt4 book ai didi

Facebook API : Instagram Account Is Missing

转载 作者:行者123 更新时间:2023-12-02 17:02:24 26 4
gpt4 key购买 nike

每当创建或更新 Ad 的创意时,我都会收到此错误:

{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_subcode": 1772103,
"is_transient": false,
"error_user_title": "Instagram Account Is Missing",
"error_user_msg": "You're using Instagram as a placement. Please select an Instagram account to represent your business in your Instagram ads, or select a Facebook Page to use instead.",
"fbtrace_id": "..."
}
}

但是,我只是想尝试为特定的 Page Post 创建一个 Ad,并将其添加到现有的 AdSet。要为给定的 Post 创建新的创意,我使用 /adcreatives 端点并传递以下内容:

POST:  https://graph.facebook.com/v3.1/act_<ActId>/adcreatives 
{
"name": "Test",
"object_story_id":"<PostIdWithPage>",
}

到目前为止一切正常。但是 Ad 的以下更新会导致上述错误:

POST:  https://graph.facebook.com/v3.1/<AdId>
{
"creative": {
"creative_id": "<CreativeId>",
}
}

我想,当我尝试向不能在 Instagram 上使用的 Ad 添加广告素材时,会发生上述错误。

但为什么它不像在商务管理平台中那样工作?在那里,我可以简单地为新创建的广告选择一个帖子。如果此帖子对 Instagram 无效,它会显示警告,但它仍然有效。

那么,当我想创建一个可以根据给定帖子创建广告的工具时,我该如何实现呢?我们如何解决上述错误?

最佳答案

这里重要的缺失部分是,我们必须指定 instagram_actor_id创建 AdCreative 时.可以通过 GETting <PageId>/page_backed_instagram_accounts 检索 ID .

关于 Facebook API : Instagram Account Is Missing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53442354/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com