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.