Chris Houghton
Chris Houghton

Reputation: 707

What permission do I need to access Facebook ads pixels?

I'm creating a Facebook app, and one of the things I'm trying to do is read a list of Facebook tracking pixels that are running on a user's website.

Facebook's docs outline that it's relatively straightforward to do with a query to:

https://graph.facebook.com/API_VERSION/act_AD_ACCOUNT_ID/adspixels

However, I'm getting the following message:

{
  "error": {
    "message": "(#10) You do not have sufficient permissions to perform this action", 
    "type": "OAuthException", 
    "code": 10
  }
}

I've currently got the following permissions enabled on the account:

I can't see any other ad-related permissions available - am I missing something? Is this a restricted access feature to certain app developers or something?

Upvotes: 1

Views: 1534

Answers (1)

Chris Houghton
Chris Houghton

Reputation: 707

Just for the benefit of the rest of the community, the permission required is ads_management.

Apparently the Graph API explorer doesn't allow you to test the adspixels endpoint with "Graph API Explorer" app, even if you've granted it the ads_management permission.

To resolve this issue, just use your own app with the explorer.

Upvotes: 2

Related Questions