Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Ads Insights API: (#3) Application does not have the capability to make this API call

I am trying to pull Facebook Ads metrics through the Facebook Marketing API. The flow is basically that I wish to pull all the account ids of my company, and then loop over them, retrieving the insights for them individually.

However I have an error which I am not able to solve/comprehend.

When I attempt to make the API call (both in the Graph Explorer and my Alteryx workflow):

GET-> /v2.8/act_<Account_ID>/insights

I get the following error:

 "error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "BNevVWUExDg"
}

I must admit that I am quite at a loss what is causing this error...and actually also exactly what the issue is...am I lacking the right scope/permissions for my token?

With the same token I am able to correctly call the API to get a list of all adaccounts (GET-> /v2.8/me/adaccounts ).

Anyone have an idea what my issue might be?

like image 627
caz777 Avatar asked Oct 19 '16 22:10

caz777


1 Answers

You have to make sure that your particular access token has the permissions ads_management or ads_read.

This is from the Marketing API quickstart. https://developers.facebook.com/docs/marketing-apis

There are also rate limits on those API's, but I would expect a different error if that was the case.

like image 68
Ben Gomez Avatar answered Oct 25 '22 05:10

Ben Gomez