Instagram 自定义受众来源未通过 api 预填充

问题描述 投票:0回答:2

我可以通过 Api 创建 Instagram 自定义受众,但源字段未预先填充。如果我从 Facebook 中的广告 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
中使用了它。我运气不好。请帮助我。提前致谢

facebook facebook-graph-api facebook-ads-api facebook-marketing-api
2个回答
0
投票

最后我解决了这个问题。遇到此问题的任何人都获得了 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
。干杯,编码快乐!!


0
投票

您在哪里找到 ig 事件名称的文档。我正在尝试创建一个有关注者的受众群体,但我不知道在哪里可以查看活动名称。

© www.soinside.com 2019 - 2024. All rights reserved.