Api fail product catalog

help is needed. I tried to start with https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3

an account created. Confirmed it phone

. created an account, account, app, etc. related app with ad adont like https://developers.facebook.com/docs/marketing-api/access#standard_accounts

. Now I tried to create a product catalog. i get the same error all the time:

 The app is not whitelisted to use this API

      

I tried to call the api for the product directories cteate / list / management. when i did that same UI - i can create product catalog and feed. but according to the API - the whole time error. I don't understand what he needs?

now try to create a set of products:

GET /<product_catalog ID>/product_sets/?
access_token=<my access token from app with full rights get from exploer>
{
  "error": {
    "message": "(#200) The app is not whitelisted to use this API",
    "type": "OAuthException",
    "code": 200
  }
}

      

try to create the same:

POST : /v2.3/<product_catalog ID>/product_sets/?access_token=<my access token from app with full rights get from exploer>&name=my new prod set
{
  "error": {
    "message": "(#275) Ad account cannot be determined for this request",
    "type": "OAuthException",
    "code": 275
  }
}

      

So what are the changes I need to make it work?

is this any way to get the api calls to work correctly?

ps i think there is something wrong in settings - i run unit tests in SDK - have the same situation. I've read about these issues with a game app - but my app is not a game, so I can't use the solution in my situation. if some organism understands that it wants a white API - please help! Thank.

+3


source to share


4 answers


The error is due to the documentation you linked to - if your app is not approved for API access Standard

, it can only access a certain number of accounts and these accounts must be preconfigured in the app settings

Many of the Business Manager APIs cannot be used because they are not tied to one of these pre-defined accounts (hence the error Ad account cannot be determined for this request

).



In general, the Business Manager APIs probably won't work for you until your app gets tier-level access Standard

, although some will if they depend on the account

+1


source


Hope this helps someone else: I was also trying to create a Product Catalog via an API in development and got "Application does not have a whitelist to use this API".



I solved this by creating a system user admin and creating a permission access token business_management

.

+1


source


You cannot be an application administrator and a tester / developer at the same time. You have to create another facebook account for tests.

0


source


This also happens when the access token is used outside of your standard access application. Also note that the dev version of the same app will not work.

0


source







All Articles