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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With