无法访问Facebook广告系列

无法访问Facebook广告系列

本文介绍了无法访问Facebook广告系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用Facebook Graph API获取我的广告系列列表

I'm unable to get a list of my campaigns using Facebook Graph API

/me/adaccounts

{
  "data": [
    {
      "account_id": "123456789000001234",
      "id": "act_123456789000001234"
    }
  ],
  "paging": {
    "cursors": {
      "before": "AAAAaaaBBBBcccc",
      "after": "AAAAaaaBBBBdddd"
    }
  }
}

/123456789000001234/campaigns返回

{
  "error": {
    "message": "Unsupported get request. Object with ID '123456789000001234' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
    "type": "GraphMethodException",
    "code": 100,
    "fbtrace_id": "EilRrOk1CEb"
  }
}

请注意,id已更改为虚拟值.

Note that id's have been changed to dummy-values.

令牌是针对系统用户的,并且广告帐户已分配给该用户(角色:admin).令牌包含以下范围:read_page_mailboxes, rsvp_event, ads_management, ads_read, read_insights, manage_pages, publish_pages, pages_show_list, pages_manage_cta, pages_manage_instant_articles, business_management, publish_actions

The token is for a system user and the ad account have been assigned to the user (role: admin). Token contains following scopes: read_page_mailboxes, rsvp_event, ads_management, ads_read, read_insights, manage_pages, publish_pages, pages_show_list, pages_manage_cta, pages_manage_instant_articles, business_management, publish_actions

我在做什么错了?

推荐答案

必须使用id: act_123456789000001234而不是account_id: 123456789000001234,因此请求变为/act_123456789000001234/campaigns.还必须创建一个Facebook应用程序,添加Marketing API并为其分配一个广告帐户,然后通过该应用程序创建令牌,而不是从业务管理器中创建令牌.

Had to use id: act_123456789000001234 instead of account_id: 123456789000001234 so the request becomes /act_123456789000001234/campaigns. Also had to create a Facebook App, add Marketing API and assign to that an Ad Account, then create a token via the app instead of creating a token from the Business Manager.

这篇关于无法访问Facebook广告系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:04