We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the batch insert function an error is thrown.
Call to undefined method Google_Service_ShoppingContent_Product::getWarnings()
I have checked and it seems the getWarnings() function has been removed from the product class.
foreach ($batchResponse->entries as $entry) { if (empty($entry->getErrors())) { $product = $entry->getProduct(); printf("Inserted product %s with %d warnings\n", $product->getOfferId(), count($product->getWarnings())); } else { print ("There were errors inserting a product:\n"); foreach ($entry->getErrors()->getErrors() as $error) { printf("\t%s\n", $error->getMessage()); } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using the batch insert function an error is thrown.
Call to undefined method Google_Service_ShoppingContent_Product::getWarnings()
I have checked and it seems the getWarnings() function has been removed from the product class.
foreach ($batchResponse->entries as $entry) { if (empty($entry->getErrors())) { $product = $entry->getProduct(); printf("Inserted product %s with %d warnings\n", $product->getOfferId(), count($product->getWarnings())); } else { print ("There were errors inserting a product:\n"); foreach ($entry->getErrors()->getErrors() as $error) { printf("\t%s\n", $error->getMessage()); } } }
The text was updated successfully, but these errors were encountered: