简体   繁体   English

Facebook Marketing API - 添加ProductCatalog

[英]Facebook Marketing API - adding ProductCatalog

I need help. 我需要帮助。 I use developer app where I try add ProductCatalog to Business Manager. 我使用开发人员应用程序尝试将ProductCatalog添加到Business Manager。 Earlier I add Multi Product and is it ok. 之前我添加了Multi Product,没关系。

$catalog = new ProductCatalog(null,'<BUSINESS_ID>');
$catalog->setData(array(
    ProductCatalogFields::NAME => 'test',
));
$catalog->save();

I get error 我收到错误

(#275) Ad account cannot be determined for this request (#275)无法确定此请求的广告帐户

When I try 当我尝试

$request = new FacebookRequest( $session, 'POST', '/<BUSINESS_ID>/product_catalogs',array('name'=>'test') );
$response = $request->execute();

I get 我明白了

(#275) Ad account cannot be determined for this request (#275)无法确定此请求的广告帐户

What happened? 发生了什么? ProductCatalog need AdAcoountID? ProductCatalog需要AdAcoountID吗? I add to app settings all adaccounts ids. 我向应用设置添加了所有adaccounts ID。 Where I must add this in code. 我必须在代码中添加它。 I have the newest API. 我有最新的API。

What is the level of Ads API access that the app you use has? 您使用的应用有哪些广告API访问权限级别? As described here there are different levels. 如此处所述有不同的层次。 Since Product Catalogs uses Business Manager, you need to have Marketing API Access with the "Standard" level. 由于产品目录使用Business Manager,因此您需要具有“标准”级别的Marketing API访问权限。

If your app is still on "Development" or "Basic" access, see the above mentioned documentation to read how you can apply for higher access. 如果您的应用仍处于“开发”或“基本”访问状态,请参阅上述文档以了解如何申请更高的访问权限。

You can see what level of access you have by going to you App Dashboard --> "Status and Review", create a new submission for review and see which permissions are available. 您可以通过转到App Dashboard - >“Status and Review”查看您的访问级别,创建新的提交以供审阅并查看可用的权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM