Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't access Facebook campaigns

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

Response for /me/adaccounts

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

/123456789000001234/campaigns returns

{
  "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"
  }
}

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

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

What am I doing wrong?

like image 200
Jan Sommer Avatar asked Oct 11 '16 09:10

Jan Sommer


People also ask

Why is my Facebook ad campaign not working?

Your ads will not run on Facebook if you don't have 1,000 active users in your target audience. There are a number of ways this could be happening: The targeting parameters you've chosen simply don't have enough users in them. You're excluding nearly all of your audience in an effort to be efficient.

How do I see my Facebook campaigns?

Go to the Page by tapping its name in your Feed or searching for it. Tap See All below Page Transparency. If you don't see this, tap About then tap See all next to Page transparency. Below Ads From This Page, tap Go to Ad Library.

How do I enable a Facebook campaign?

Go to Ads Manager. Select Campaigns, Ad Sets or Ads. Click the toggle next to each campaign, ad set or ad you want to turn on or off.

Do Facebook ads still work 2022?

Facebook advertising is still relevant in 2022. Leaving Facebook out of a paid social media strategy means losing out on its huge user base, market share, and technological capabilities.


1 Answers

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.

like image 94
Jan Sommer Avatar answered Sep 28 '22 06:09

Jan Sommer