Ich brauche Hilfe. Ich verwende die Entwickler-App, in der ich versuche, ProductCatalog zum Business-Manager hinzuzufügen. Früher habe ich Multi-Produkt hinzugefügt und ist es in Ordnung.Facebook Marketing API - Hinzufügen von ProductCatalog
$catalog = new ProductCatalog(null,'<BUSINESS_ID>');
$catalog->setData(array(
ProductCatalogFields::NAME => 'test',
));
$catalog->save();
Ich bekomme Fehler
(# 275) Ad-Konto kann nicht für diese Anforderung
bestimmt werden, wenn ich versuche,
$request = new FacebookRequest($session, 'POST', '/<BUSINESS_ID>/product_catalogs',array('name'=>'test'));
$response = $request->execute();
I
bekommen(# 275) Ad-Konto kann nicht für diese Anforderung
Was ist passiert bestimmt werden? ProductCatalog benötigt AdAcountID? Ich füge alle adaccounts-IDs zu den App-Einstellungen hinzu. Wo muss ich das in Code hinzufügen. Ich habe die neueste API.
Vielleicht kann Ihnen dies helfen: http://stackoverflow.com/questions/29278909/how-to-get-a-listing-of-product-catalogs-from-a-business-manager-with-developmen – Perry