如何从具有开发访问权限的业务经理获取产品目录的列表?

问题描述:

我有一个开发人员帐户,并且已经在开发模式下创建了应用程序,仅供测试。我还在 business.facebook.com 创建了一个业务经理,并将我的测试应用添加到它。我也有一个广告帐户,它被添加到业务经理。我还将广告帐户ID添加到我的应用程序下的 Advanced - >广告帐户 - >授权帐户

I have a developer account and have created an application in development mode, just for testing purposes. I have also created a business manager at business.facebook.com, and added my test app to it. I have an ad account as well, which is added into the business manager. I also added the ad account ID to my application under the Advanced --> Advertising Accounts --> Authorized accounts.

但是,当我使用Facebook Graph API Explorer时,将其设置为使用我创建的应用程序,然后拨打电话到 /v2.3/ [BUSINESS_ID] / product_catalogs ,我收到以下错误:

However, when I use the Facebook Graph API Explorer, and set it to use the application I created, then make a call to /v2.3/[BUSINESS_ID]/product_catalogs, I get the following error:

"message": "(#275) Ad account cannot be determined for this request", 

如果我直接致电广告帐户,请在 /v2.3/act_ [adaccountId] 中查看广告帐户信息。

If I call the ad account directly, at /v2.3/act_[adaccountId], i can see the ad account information just fine.

如果我在业务经理中自己创建一个产品目录,然后调用端点,了解该产品目录的详细信息,位于 /v2.3/ [product_catalog_id] ,我得到以下内容:

If I create a product catalog myself in business manager, then call the endpoint for details on that product catalog at /v2.3/[product_catalog_id], i get the following:

"message": "(#200) The app is not whitelisted to use this API", 

如果我正在访问我是管理员的目录,而对于我是管理员,并正在使用开发访问,为什么需要被列入白名单?

If i am accessing catalogs that i am the admin for, and for apps that i am the admin for, and am using development access, why would it need to be whitelisted?

这里的问题是您所说的,您的应用程序位于广告API的开发层。广告API有3层:

The issue here is as you said, your application is in the Development Tier for the Ads API. There are 3 tiers to the Ads API:


  1. 开发层

  2. 基本层

  3. 标准层

所有这些都记录在营销API访问级别文档。为了访问Business Manager API的任何部分,您的应用程序将需要访问标准层。

All of which are documented in the Marketing API Access Levels documentation. In order to access any part of the Business Manager API your application will need to have access to the Standard Tier.

我建议您按照文档中的步骤提高级别,当您确信准备就绪时,您可以申请标准层访问

I would recommend that you follow the steps in the documentation to move up the levels and when you believe you are ready, you can apply for Standard Tier Access