问题描述
我可以通过 Api 创建 instagram 自定义受众,但源字段未预填充。如果我在 fb 中从 Ads ui 手动创建它工作正常。请查看我已经尝试过的内容
curl -X POST \
-F 'name=My Test Engagement Custom Audience insta' \
-F 'rule={
"inclusions": {
"operator": "or","rules": [
{
"event_sources": [
{
"id": business_profile_id,"type": "ig_business"
}
],"retention_seconds": 31536000,"filter": {
"operator": "and","filters": [
{
"field": "event","operator": "eq","value": "ig_business_profile_visit"
}
]
}
}
]
}
}' \
-F 'prefill=1' \
-F 'access_token=xxxxxxxxx' \
https://graph.facebook.com/v10.0/act_xxxxxx/customaudiences
https://developers.facebook.com/docs/marketing-api/audiences/guides/engagement-custom-audiences
我已从 me/accounts?fields=name,id,access_token,instagram_business_account{id}
获取 instagram_business_account id 并在 event_sources id
中使用它。我不走运。请帮助我。提前致谢
解决方法
最后我修复了它。我得到了 instagram_business_account_id 而不是 instagram 个人资料 ID 任何面临这个问题的人,如果您的 instagram 帐户附加到 Facebook 页面 Instagram 商业个人资料 ID 可以从这里找到
https://developers.facebook.com/docs/graph-api/reference/page/instagram_accounts/
示例
{fb-page-id}/instagram_accounts?fields=id
和使用的访问令牌是 fb page access token
.Cheers,Happy coding!!