【问题标题】:Instagram custom audience source not prefilling via apiInstagram 自定义受众来源未通过 api 预填充
【发布时间】:2021-03-06 12:49:51
【问题描述】:

我可以通过 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 中使用它。我运气不好。请帮助我。提前致谢

【问题讨论】:

    标签: facebook facebook-graph-api facebook-ads-api facebook-marketing-api


    【解决方案1】:

    最后我修复了它。如果您的 instagram 帐户附加到 facebook 页面,则可以从此处找到 Instagram 业务资料 ID,如果您的 instagram 帐户附加到 Facebook 页面,我将获得 instagram_business_account_id 而不是 instagram 个人资料 ID。

    https://developers.facebook.com/docs/graph-api/reference/page/instagram_accounts/

    例子

    {fb-page-id}/instagram_accounts?fields=id 和使用的访问令牌是 fb page access token。干杯,快乐编码!!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-15
      • 1970-01-01
      相关资源
      最近更新 更多