产品目录api失败

Jud*_*ude 5 api facebook product dpi

需要帮忙。我尝试从https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3 创建帐户开始。已获批准phone。创建了一个企业帐户,一个广告帐户,一个应用程序,等等。将应用链接到这样的ad accont https://developers.facebook.com/docs/marketing-api/access#standard_accounts。现在,我尝试创建产品目录。我一直都遇到相同的错误:

 The app is not whitelisted to use this API
Run Code Online (Sandbox Code Playgroud)

我试图调用api来创建/列出/管理产品目录。当我这样做时,UI也一样-我可以创建产品目录和Feed。但通过API-所有时间都出错。我不明白它需要什么?

现在尝试创建产品集:

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
  }
}
Run Code Online (Sandbox Code Playgroud)

尝试创建相同的内容:

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
  }
}
Run Code Online (Sandbox Code Playgroud)

那么,要使它起作用,我需要进行哪些更改?

是否可以使api调用正常工作?

PS:我猜设置有问题-我在SDK中运行单元测试-情况相同。我已经阅读过有关游戏应用程序的问题-但我的应用程序-不是游戏,因此我无法使用这种解决方案。如果有人了解白名单API想要什么-请帮忙!谢谢。

Igy*_*Igy 2

您链接到的文档解释了该错误 - 除非您的应用程序被批准Standard访问 API,否则它只能访问特定数量的广告帐户,并且这些帐户需要在应用程序设置中预先配置

许多业务管理器 API 无法使用,因为它们未绑定到这些预先指定的帐户之一(因此会出现错误Ad account cannot be determined for this request)。

一般来说,业务管理器 API 可能不会为您工作,直到您的应用程序具有该级别的访问权限standard,尽管有些 API 是特定于帐户的,但可以使用