Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 469426462
  • Loading branch information
Brothman committed Feb 10, 2023
1 parent af148d4 commit 8dee915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ the Google Content API for Shopping and/or the Manufacturer Center API.
Please make sure that you're running Java 7+. If you use Maven, you can use
the included `pom.xml` to install the required dependencies. Otherwise,
install the
[Content API for Shopping Client Library for Java](https://developers.google.com/api-client-library/java/apis/content/v2)
[Content API for Shopping Client Library for Java](https://developers.google.com/api-client-library/java/apis/content/v2.1)
and/or the
[Manufacturer Center API Client Library for Java](https://developers.google.com/api-client-library/java/apis/manufacturers/v1).

Expand Down
5 changes: 3 additions & 2 deletions ruby/product/update_product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
require_relative "product_common"

def update_product(content_api, merchant_id, product_id)
# First we need to retrieve the full object, since there are no partial
# updates for the products collection in Content API v2.
# This is a full update without supplemental feeds. First we need to retrieve
# the full object so we can overwrite the fields we want to change before
# re-inserting the product.
response = content_api.get_product(merchant_id, product_id) do |res, err|
if err
if err.status == 404
Expand Down

0 comments on commit 8dee915

Please sign in to comment.