Search code examples
facebookfacebook-appsfacebook-ads-api

Accessing Facebook Ads API request error 270


I have a whitelisted Facebook App that is out of sandbox mode and has been approved for the Ads API, but I am receiving the following error when trying to make requests to the Ads API.

{
   "error": {
      "message": "(#270) This Ads API request is not allowed for apps with only developer  access",
      "type": "OAuthException",
      "code": 270
   }
}

This occurs when using adgroupstats, adcampaignstats, and reportstats requests, etc. The adaccounts request does return my account information though. My dashboard does read "This app is public and available to all users", as I needed to get out of sandbox mode in order for my app to be whitelisted.

Is there another setting that I have missed in order to gain access to the Ads API calls that I need?


Solution

  • Answer: This is most likely due to your dev/admin accounts of the app not being set as "Admins" in facebook's ad manager. Let me know if this solves this issue for you.

    Old response: I am running into the same issue. Can not run api calls against reportstats even though the user that the app/ad account belongs too was an admin, i change that user to a developer and its still happening.

    I opened a bug report for this: https://developers.facebook.com/bugs/786289188058999