You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, please, how to update availability and ExcludedDestinations?
public function updateProduct(
Google_Service_ShoppingContent_Product $product) {
// Let's add a product_type and update the product
$product->setProductTypes(['English/Classics']);
// Notice that we use insert. The products service does not have an update
// method. Inserting a product with an ID that already exists means the same
// as doing an update anyway.
$response = $this->session->service->products->insert(
$this->session->merchantId, $product);
printf ("Product updated: %s \n", $response->getId());
}
Please, how to use that to update a single product by ID?
Maybe understood. At first I need to get a specific product, then pass it to the update function, then I don't know why you need to product->setSource(null), otherwise error on log [product.source] INSERT request must not specify product.source
Hello, please, how to update availability and ExcludedDestinations?
Please, how to use that to update a single product by ID?
If I do something like:
inside the function...
IT complaints about service parameter missing
How to fix? Thanks
The text was updated successfully, but these errors were encountered: