Facebook Ads Api Request C # 273 requires the user to be an administrator

I am trying to request the Facebook Ads API using Graph Api Explorer. I have two accounts associated with me (if I go to /me/adaccounts/ , I see both), one of them is mine, and the other I am only an administrator, but not the owner.

The problem is that I am not the owner. If I request my Adaccount using /act_<ACT_ID/stats , I get the usual answer with statistics, if I ask for another account that I get:

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

I see that both Adaccounts are normal in Facebook Adsmanager.

What I did to get the answer:

  • Create a Facebook app.
  • Added by Adaccount under developer.facebook.com → myApp → settings → advanced → ad accounts → Ad API. Account
  • open GraphExplorer ( https://developers.facebook.com/tools/explorer/ )
  • select my created application
  • get AccessToken (ads_management, ads_read)
  • go to url me/adaccounts/
  • If I click on my advertising account, it works, if I click on another, I get error # 273.

I do not see what I am doing wrong, if someone can point me in the right direction, I will be grateful.

+6
source share
3 answers

This may be due to the fact that your account is inactive or in poor condition. In addition, if the level of access to your ad account is at the development level, these types of errors may occur. please read what was mentioned in the document here. If you upgrade your account to a basic or standard access level, this will be allowed.

At the level of access to development, only cross-cutting workflows are offered. The following text is extracted from the documentation in facebook.

The development access level is designed for development purposes and is ideal for people who are just starting to build their tool. At this level you will not have clients using your tool yet. This level is open to all developers and is designed to create end-to-end workflows in the API until full permissions are obtained.

A similar issue has been reported in facebook bug reports. you can see the stream here

+2
source

As @Igy stated this in a comment: "the user must be the administrator of both the ad account and the application (and not just the advertiser or have another role in the ad account).

There are 2 places to check that:

Once the user becomes an administrator on both sides, the API calls will be in order.

0
source

Your business manager does not have administrator rights. Check the administrator rights of the business manager and add the application to your business manager to get a stat report ( https://developers.facebook.com/docs/apps/business-manager#update-business ).

-3
source

Source: https://habr.com/ru/post/982254/


All Articles