产品目录 api 失败

product catalog api fail

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

 The app is not whitelisted to use this API

我试图调用 api 到 cteate/list/managment 产品目录。 当我这样做时,UI 也一样 - 我可以创建产品目录和提要。 但是 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
  }
}

尝试创建相同的:

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
  }
}

那么我需要做哪些改变才能让它发挥作用?

是否有任何方法可以使 api 调用正常工作?

p.s。 我猜设置有问题 - 我 运行 SDK 中的单元测试 - 有同样的情况。我已经读到有关游戏应用程序的问题 - 但我的应用程序 - 不是游戏,所以我不能在我的情况下使用解决方案。 如果有人了解白名单 API 想要什么 - 请帮忙! 谢谢。

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

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

一般来说,业务经理 API 可能不会为您工作,直到您的应用具有 standard 级别的访问权限,但如果它们是特定于帐户的

您不能同时是应用管理员和 tester/developer。您应该创建另一个 Facebook 帐户进行测试。

希望这对其他人有帮助:我还尝试通过开发中的 API 创建产品目录,并得到了 "The app is not whitelisted to use this API"。

我通过创建一个 admin 系统用户,并生成一个具有 business_management 权限的访问令牌来解决它。

当使用的访问令牌不是来自具有标准访问权限的应用时,也会发生这种情况。另外,请注意同一应用的开发版本将无法运行。