Facebook's ads api exception 294 - Managing ad

2019-02-12 10:55发布

问题:

My campaign is running on FB and I want to extract daily data with the help of Ads API.

I'm using facebook ads api and I'm facing this problem every time

{
   "error": {
      "message": "(#294) Managing advertisements requires the extended permission ads_management, and a participating API key",
      "type": "OAuthException",
      "code": 294
   }
}

I have created one app XYZ and using this created I created an ad campaign.

With Graph API Explorer I generated Access Token. and I give permissions also.

回答1:

You have to make sure you have an application white listed to use the Ads API. Also, you need to make sure you get an access token for that white listed application. If your app is white listed, you can use the graph explorer, change the drop down to your app, click get access token and make sure you tick the ads_management permissions. Hope that helps.



回答2:

You must have to extended permission for accessing facebook ads using api. In your facebook application which one you created in facebook account .Add itme in status and review for ads_managemnt, insight.

Setting -> Status & Review -> Items in Review.



回答3:

There are few way how to generate app access tokens in FB. If you want to access marketing api you should do this in page https://developers.facebook.com/apps/{YOUR_APP_ID}/marketing-api/tools/ using required options.