Closed GoogleCodeExporter closed 8 years ago
Alex,
The object is not empty, it is a custom class, and you can see its methods at:
http://gshoppingcontent-php.appspot.com/GShoppingContent/GSC_Errors.html
Here you'd want
$errorsFromResponse = .... do something ....
$errors = $errorsFromResponse->getErrors();
$firstError = $errors[0];
echo $firstError->getInternalReason();
If you'd like to view any object as XML you can execute:
echo $errorsFromResponse->toXML();
echo $firstError->toXML();
As for the error you got, see the error on our error code list:
https://developers.google.com/shopping-content/getting-started/error-codes#not-w
hitelisted
To get whitelisted, submit a request at:
http://support.google.com/merchants/bin/request.py?contact_type=content_api
Original comment by dhermes@google.com
on 23 Apr 2012 at 10:02
Original issue reported on code.google.com by
a...@modula-shop-systems.de
on 21 Mar 2012 at 1:27