Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Ads Api Request fails with #273 requires user to be admin

I'm trying to query the Facebook Ads API with the Graph Api Explorer. I have two Ads Account connected to me (if i query /me/adaccounts/ I see both) one is my own and the other one I'm only admin on but not owner.

The Problem is with the one I'm not the owner. If I query my Adaccount with /act_<ACT_ID/stats I get a normal response with the stats back if I query the other account i get:

(#273) This Ads API call requires the user to be admin of the ad account. User <MY_USER_ID> not admin on ad account <ACT_ID>.",

I can see both Adaccounts normal in the Facebook Adsmanager.

What I have done to get the response is:

  • Create an Facebook App
  • Added the Adaccount under developer.facebook.com -> myApp -> settings -> advanced -> advertising accounts -> Ads API. Account
  • open GraphExplorer (https://developers.facebook.com/tools/explorer/)
  • select my created App
  • get AccessToken (ads_management, ads_read)
  • go to url me/adaccounts/
  • if i click on my adaccount it works if i click on the other i get the #273 error

I don't see what I'm doing wrong if someone could point me in the right direction I would be gratefull.

like image 754
L.A Avatar asked Feb 10 '15 10:02

L.A


People also ask

What is oauth exception in Facebook?

OAuthException: If you receive an OAuthException error, it means that Edgar doesn't have the correct permissions to access your Facebook accounts right now. The password may have been changed on Facebook or Facebook may have reset your security session.

How do I update my Facebook Ad API?

In the App Dashboard Settings > Advanced, scroll to the Upgrade API Version section.


1 Answers

This may be due to your ad account is inactive or in a bad standing. Additionally if your access level of your ad account is in development level these types of errors may occur. please go through what's mentioned on the doc here If you upgrade your account to basic or standard access levels this will be solved.

On development access level only end to end workflows are suggested. The following text is extracted from facebook documentation.

The development access level is designed for development purposes and is ideal for people who are just starting to build out their tool. In this level, you would not yet have customers using your tool. This level is open to all developers, and is intended to build out end-to-end workflows on the API before you get full permissions.

A similar issue has been reported on facebook bug reports. you can see the thread here

like image 72
Chamindar2002 Avatar answered Dec 30 '22 08:12

Chamindar2002