Facebook Marketing API - Add ProductCatalog

I need help. I am using a developer application where I am trying to add ProductCatalog to Business Manager. Earlier I add Multi Product and everything is all right.

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

I get an error

(# 275) An account could not be defined for this request

When i try

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

I get

(# 275) An account could not be defined for this request

What happened? Does ProductCatalog need an AdAcoountID? I add all adaccounts identifiers to the application settings. Where should I add this to the code. I have the latest API.

+6
source share
1 answer

What is the level of access to the ads API that the application uses? As described here, there are different levels. Since Business Manager is used in product catalogs, you need to have access to the marketing API with a standard level.

If your application is still in "Development" or "Basic" mode, see the above documentation to read how you can apply for higher access.

You can find out what level of access you have by visiting the application panel → "Status and Overview", create a new application for viewing and see what permissions are available.

+2
source

Source: https://habr.com/ru/post/983632/


All Articles