Products API

Overview

The Products API allows a merchant to create an online store catalog, which is the list of products and offers that are available on Google Shopping. Merchants can use the Products API once they have created their merchant center account, and are ready to upload an initial set of products via the API.

The Products API uploads product information to the Shopping Merchant Center database. It also provides a number of methods that allows one to access, update or delete product information one at a time, or many at a time, in batch mode.

Although merchants have the ability to load products using a file called a Primary Feed, there are several advantages to creating, updating, and deleting products using the Content API that includes faster response time and the ability to update multiple products' data in real time, without the need to manage multiple supplemental feeds. Note that it may take up to several hours for product changes made by API calls to be seen in the Shopping Merchant Center database.

The term "product" refers to the physical unit that is to be displayed on a merchant's Product Detail Page for listing in an online location like Google Shopping.

Product ID

There are two different kinds of product IDs used in the Shopping Content APIs.

The first kind of ID is assigned to a product by a merchant called the offerId. This ID consists of a string that represents a particular offer. An offerId is unique to the set of offers in the Shopping Merchant Center database, and is usually a numeric sequential number. It may also represent an internal SKU number that a merchant assigns to the product.

The second kind of ID is assigned to a product by Google; it is called a REST ID. The REST ID uniquely identifies a product, and it is an aggregate in the format online:en:US:1111111111, and includes the offerId as the last component. This is almost always used as the productId in API calls. The REST ID consists of 4 parts, separated by colons:

  1. Channel ("online" or "local")
  2. Content Language (using the 2-letter designation, for example "en" or "fr")
  3. Target Country (using the 2-letter designation, for example "US" or "FR")
  4. Offer ID

This is represented as channel:contentLanguage:targetCountry:offerId, for example, online:en:US:1111111111 as shown in the table below:

Attribute Description Example Notes
id Generic use of an ID. online:en:US:6 Used inside JSON body of Product to refer to productId.
offerId Another name for item ID. 6 String data type, unique identifier for a product's offer.
REST ID A composite string consisting of the channel, language, country and offer ID. online:en:US:6 Composite ID used with productId.
productId A REST ID string. online:en:US:6 This is a REST ID.

Products API

The Products API allows for a great deal of flexibility and control over more than 60 product attributes. Together these are called the product resource. There are a number of fields that are mandatory, and must be included in order to be approved for display on Google Shopping. There are a number of optional fields that may become mandatory based on varying conditions such as a merchant's location, type of product, use of product variants and product bundles, etc. For more details on the 60+ optional parameters that can be configured for products, refer to the Product Data Specifications.

The Products API allows us to insert, get, and delete one product at a time as well as list all products in the merchant center database.

The productstatuses API can be used to check on the approval or disapproval status of a specific product for a destination. Refer to the Product Statuses API guide for more details on which products may have data quality issues and what those issues may be.

In our API examples, we will use three products, two Google t-shirts and a Google cap. We use a minimal set of product data shown in the table below to make Products API calls to insert, get, list, and delete individual products and batches of products.

Best Practice: We recommend that Shipping and Tax information be configured in the merchant center, rather than at a product level.

id online:en:US:1111111111 online:en:US:2222222222 online:en:US:3333333333
offerId 1111111111 2222222222 3333333333
title The Black Google Tee Google Tee Green Google Twill Cap
description The Black Google Tee 100% cotton Google t-shirt Classic Google cap
item group ID google_tee google_tee
link http://my.site.com/blacktee http://my.site.com/greentee http://my.site.com/blackhat
condition New New New
price 21.99 USD 21.99 USD 10.99 USD
availability In Stock In Stock In Stock
imageLink https://shop.example.com/store/20160512512/assets/items/images/GGOEGXXX1100.jpg https://shop.example.com/store/20160512512/assets/items/images/GGOEGXXX0906.jpg https://shop.example.com/store/20160512512/assets/items/images/GGOEGHPB071610.jpg
gtin 9504000059422 9504000059446 9504000059452
mpn 00638NIC 00638ANG 00638ABC
brand Google Google Google
Google product category Apparel & Accessories > Clothing Apparel & Accessories > Clothing Apparel & Accessories > Clothing Accessories > Hats
color black green black
size L M M
age_group adult adult adult
gender male male unisex
included_destination Shopping Actions, Shopping Ads Shopping Actions, Shopping Ads Shopping Actions

Products.Insert

To insert a single product, use the following request URL, specifying your merchant ID, and a sample JSON body. An insert will create a new product. If values exist for the attributes channel, contentLanguage, offerId, and targetCountry for a given product, this method updates that entry, and replaces all data from previous API calls for the given product.

The example shown will insert a new "Black Google Tee" to the products available.

POST https://www.googleapis.com/content/v2/{merchantId}/products

Sample request body call for products.insert:

{
 "kind": "content#product",
 "offerId": "1111111111",
 "title": "Google Tee Black",
 "description": "The Black Google Tee is available in unisex sizing and features a retail fit.",
 "link": "http://my.site.com/blacktee/",
 "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
 "contentLanguage": "en",
 "targetCountry": "US",
 "channel": "online",
 "ageGroup": "adult",
 "availability": "in stock",
 "availabilityDate": "2019-01-25T13:00:00-08:00",
 "brand": "Google",
 "color": "black",
 "condition": "new",
 "gender": "male",
 "googleProductCategory": "1604",
 "gtin": "608802531656",
 "itemGroupId": "google_tee",
 "mpn": "608802531656",
 "price": {
  "value": "21.99",
  "currency": "USD"
 },
 "sizes": [
  "Large"
 ]
}

A product can also have custom attributes set within the JSON body. For example, we can set a purchase_quantity_limit for a single product in order to limit the number of items a customer can order as follows:

"customAttributes": [
 {
   "name": "purchase_quantity_limit",
   "type": "int",
   "value": "4"
 }
]

Note that the purchase_quantity_limit custom attribute sets a purchase limit per customer order to the product definition and is also supported by feeds. The attribute is currently in beta until fully supported by the API. Any additional custom attribute can be added by a merchant but does not result in any specific processing by the APIs.

A successful call will return an HTTP 200 code and a response body with the product resource that was created below:

{
 "kind": "content#product",
 "id": "online:en:US:1111111111",
 "offerId": "1111111111",
 "title": "Google Tee Black",
 "description": "The Black Google Tee is available in unisex sizing and features a retail fit.",
 "link": "http://my.site.com/blacktee/",
 "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
 "contentLanguage": "en",
 "targetCountry": "US",
 "channel": "online",
 "ageGroup": "adult",
 "availability": "in stock",
 "availabilityDate": "2019-01-25T13:00:00-08:00",
 "brand": "Google",
 "color": "black",
 "condition": "new",
 "gender": "male",
 "googleProductCategory": "1604",
 "gtin": "608802531656",
 "itemGroupId": "google_tee",
 "mpn": "608802531656",
 "price": {
  "value": "21.99",
  "currency": "USD"
 },
 "sizes": [
  "Large"
 ],
 "destinations": [
  {
   "destinationName": "Shopping",
   "intention": "required"
  }
 ]
}

Products.Get

To get information on a specific product that is in the Merchant Center database, use products.get. It may take a few minutes for a newly inserted product to be available via the products.get API call.

Use the following HTTP request URL and parameters, your merchant ID, and the product ID (REST ID format) for the product that you want to get:

GET https://www.googleapis.com/content/v2/{merchantId}/products/{productId}

A successful call would return an HTTP 200 and the "product resource" in the response body. As an example, the following information was successfully returned in our example with product ID online:en:US:1111111111:

{
 "kind": "content#product",
 "id": "online:en:US:1111111111",
 "offerId": "1111111111",
 "source": "api",
 "title": "Google Tee Black",
 "description": "The Black Google Tee is available in unisex sizing and features a retail fit.",
 "link": "http://my.site.com/blacktee/",
 "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
 "contentLanguage": "en",
 "targetCountry": "US",
 "channel": "online",
 "ageGroup": "adult",
 "availability": "in stock",
 "availabilityDate": "2019-01-25T13:00:00-08:00",
 "brand": "Google",
 "color": "black",
 "condition": "new",
 "gender": "male",
 "googleProductCategory": "1604",
 "gtin": "608802531656",
 "itemGroupId": "google_tee",
 "mpn": "608802531656",
 "price": {
  "value": "21.99",
  "currency": "USD"
 },
 "sizes": [
  "Large"
 ],
 "destinations": [
  {
   "destinationName": "Shopping",
   "intention": "required"
  }
 ]
}

Products.Delete

To delete a single product, use products.delete with the sample HTTP request URL, your merchant ID, and the product ID (the REST ID format such as online:en:US:1111111111) for the product that you want to delete:

DELETE https://www.googleapis.com/content/v2/{merchantId}/products/{productId}

A successful response would be an HTTP Status 204, a success with no response body.

Products.List

The products.list will list all products that a merchant has within the merchant center database. Use the following request URL:

GET https://www.googleapis.com/content/v2/{merchantId}/products

An HTTP 200 success is returned along with the response body, where a product resource in the JSON body represents data for a single product.

The following three example products are returned:

{
 "kind": "content#productsListResponse",
 "resources": [
  {
   "kind": "content#product",
   "id": "online:en:US:1111111111",
   "offerId": "1111111111",
   "source": "api",
   "title": "Google Tee Black",
   "description": "The Black Google Tee is available in unisex sizing and features a retail fit.",
   "link": "http://my.site.com/blacktee/",
   "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
   "contentLanguage": "en",
   "targetCountry": "US",
   "channel": "online",
   "ageGroup": "adult",
   "availability": "in stock",
   "availabilityDate": "2019-01-25T13:00:00-08:00",
   "brand": "Google",
   "color": "black",
   "condition": "new",
   "gender": "male",
   "googleProductCategory": "1604",
   "gtin": "608802531656",
   "itemGroupId": "google_tee",
   "mpn": "608802531656",
   "price": {
    "value": "21.99",
    "currency": "USD"
   },
   "sizes": [
    "Large"
   ],
   "destinations": [
    {
     "destinationName": "Shopping",
     "intention": "required"
    }
   ]
  },
  {
   "kind": "content#product",
   "id": "online:en:US:2222222222",
   "offerId": "2222222222",
   "source": "api",
   "title": "Google Tee Green",
   "description": "100% cotton jersey fabric sets this Google t-shirt above the crowd.
   Features the google logo across the chest. Unisex sizing.",
   "link": "http://my.site.com/greentee/",
   "imageLink": "https://shop.example.com/.../images/GGOEGXXX0906.jpg",
   "contentLanguage": "en",
   "targetCountry": "US",
   "channel": "online",
   "ageGroup": "adult",
   "availability": "in stock",
   "availabilityDate": "2019-01-25T13:00:00-08:00",
   "brand": "Google",
   "color": "green",
   "condition": "new",
   "gender": "male",
   "googleProductCategory": "1604",
   "gtin": "608802531649",
   "itemGroupId": "google_tee",
   "mpn": "608802531649",
   "price": {
    "value": "21.99",
    "currency": "USD"
   },
   "sizes": [
    "Medium"
   ],
   "destinations": [
    {
     "destinationName": "Shopping",
     "intention": "required"
    }
   ]
  },
  {
   "kind": "content#product",
   "id": "online:en:US:3333333333",
   "offerId": "3333333333",
   "source": "api",
   "title": "Google Twill Cap",
   "description": "Classic urban styling distinguishes this Google cap.
   Retains its shape, even when not being worn.",
   "link": "http://my.site.com/blackhat/",
   "imageLink": "https://shop.example.com/.../images/GGOEGHPB071610.jpg",
   "contentLanguage": "en",
   "targetCountry": "US",
   "channel": "online",
   "ageGroup": "adult",
   "availability": "in stock",
   "availabilityDate": "2019-01-07T13:00:00-08:00",
   "brand": "Google",
   "color": "black",
   "condition": "new",
   "gender": "male",
   "googleProductCategory": "173",
   "gtin": "689355417246",
   "mpn": "689355417246",
   "price": {
    "value": "10.99",
    "currency": "USD"
   },
   "sizes": [
    "Medium"
   ],
   "destinations": [
    {
     "destinationName": "Shopping",
     "intention": "required"
    }
   ]
  }
 ]
}

Batch Mode

The custombatch API methods allow merchants to insert, get, or delete multiple products at a time using a single API call, which has the advantage of minimizing the number of API calls made.

Use the following request URL to make a call to the custom batch APIs:

POST https://www.googleapis.com/content/v2/products/batch

The request body contains specific parameters: batchId, merchantID, and a method.

Only use the productId if you are executing a get or delete. The productId is not required on an insert API call for custombatch.

Custombatch:Insert

The following request URL is used to make a products.custombatch method=insert

POST https://www.googleapis.com/content/v2/products/batch

In order to insert the two new products we specify the batchId that is unique to each product in this API call, the merchantId of the merchant authorized to make this API call, and specify the method as insert for this transaction.

In the example below the batchId is 1111 and 1112 respectively, and are unique identifiers for each product within this particular API call. The merchantId: 1234567 should be the merchant that is authorized to make the API call, and the method is either a get, delete, or insert.

An insert will create a new product. If values exist for the attributes channel, contentLanguage, offerId, and targetCountry for a given product, this method updates that entry and replaces all data from previous API calls for the given product.

In the following JSON body we insert our two t-shirts into the merchant center database using a single API call:

{
  "entries": [
    {
      "batchId": 1111,
      "merchantId": 1234567,
      "method": "insert",
      "product": {
        "kind": "content#product",
        "offerId": "1111111111",
        "source": "api",
        "title": "Google Tee Black",
        "description": "The Black Google Tee is available in unisex sizing and
        features a retail fit.",
        "link": "http://my.site.com/blacktee/",
        "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
        "contentLanguage": "en",
        "targetCountry": "US",
        "channel": "online",
        "ageGroup": "adult",
        "availability": "in stock",
        "availabilityDate": "2019-01-25T13:00:00-08:00",
        "brand": "Google",
        "color": "black",
        "condition": "new",
        "gender": "male",
        "googleProductCategory": "1604",
        "gtin": "608802531656",
        "itemGroupId": "google_tee",
        "mpn": "608802531656",
        "price": {
          "value": "21.99",
          "currency": "USD"
        },
        "sizes": [
          "Large"
        ],
        "destinations": [
          {
            "destinationName": "Shopping",
            "intention": "required"
          }
        ]
      }
    },
    {
      "batchId": 1112,
      "merchantId": 1234567,
      "method": "insert",
      "product": {
        "kind": "content#product",
        "offerId": "2222222222",
        "source": "api",
        "title": "Google Tee Green",
        "description": "100% cotton jersey fabric sets  this Google t-shirt above
        the crowd. Features the google logo across the chest. Unisex sizing.",
        "link": "http://my.site.com/greentee/",
        "imageLink": "https://shop.example.com/.../images/GGOEGXXX0906.jpg",
        "contentLanguage": "en",
        "targetCountry": "US",
        "channel": "online",
        "ageGroup": "adult",
        "availability": "in stock",
        "availabilityDate": "2019-01-25T13:00:00-08:00",
        "brand": "Google",
        "color": "green",
        "condition": "new",
        "gender": "male",
        "googleProductCategory": "1604",
        "gtin": "608802531649",
        "itemGroupId": "google_tee",
        "mpn": "608802531649",
        "price": {
          "value": "21.99",
          "currency": "USD"
        },
        "sizes": [
          "Medium"
        ],
        "destinations": [
          {
            "destinationName": "Shopping",
            "intention": "required"
          }
        ]
      }
    }
  ]
}

A successful API call with return an HTTP 200 return code and response JSON that includes the products that were just inserted. The format of the return JSON will be similar to the following:

{
 "kind": "content#productsCustomBatchResponse",
 "entries": [
  {
   "kind": "content#productsCustomBatchResponseEntry",
   "batchId": 1111,
   "product": {
    "kind": "content#product",
    "id": "online:en:US:1111111111",
    "offerId": "1111111111",
    "title": "Google Tee Black",
    "description": "The Black Google Tee is available in unisex sizing and
    features a retail fit.",
    "link": "http://my.site.com/blacktee/",
    "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
    "contentLanguage": "en",
    "targetCountry": "US",
    "channel": "online",
    "ageGroup": "adult",
    "availability": "in stock",
    "availabilityDate": "2019-01-25T13:00:00-08:00",
    "brand": "Google",
    "color": "black",
    "condition": "new",
    "gender": "male",
    "googleProductCategory": "1604",
    "gtin": "608802531656",
    "itemGroupId": "google_tee",
    "mpn": "608802531656",
    "price": {
     "value": "21.99",
     "currency": "USD"
    },
    "sizes": [
     "Large"
    ],
    "destinations": [
     {
      "destinationName": "Shopping",
      "intention": "required"
     }
    ]
   }
  },
  {
   "kind": "content#productsCustomBatchResponseEntry",
   "batchId": 1112,
   "product": {
    "kind": "content#product",
    "id": "online:en:US:2222222222",
    "offerId": "2222222222",
    "title": "Google Tee Green",
    "description": "100% cotton jersey fabric sets this Google t-shirt above
    the crowd. Features the google logo across the chest. Unisex sizing.",
    "link": "http://my.site.com/greentee/",
    "imageLink": "https://shop.example.com/.../images/GGOEGXXX0906.jpg",
    "contentLanguage": "en",
    "targetCountry": "US",
    "channel": "online",
    "ageGroup": "adult",
    "availability": "in stock",
    "availabilityDate": "2019-01-25T13:00:00-08:00",
    "brand": "Google",
    "color": "green",
    "condition": "new",
    "gender": "male",
    "googleProductCategory": "1604",
    "gtin": "608802531649",
    "itemGroupId": "google_tee",
    "mpn": "608802531649",
    "price": {
     "value": "21.99",
     "currency": "USD"
    },
    "sizes": [
     "Medium"
    ],
    "destinations": [
     {
      "destinationName": "Shopping",
      "intention": "required"
     }
    ]
   }
  }
 ]
}

Custombatch:Get

The following request URL is used to make a products.custombatch with method=get:

POST https://www.googleapis.com/content/v2/products/batch

In order to get a product we specify the batchId that is unique to a product within this API call, the merchantId of the merchant authorized to make this API call, the method as get for this transaction, and specify the productId of the products being retrieved.

The following is a sample JSON request body for retrieving the two products we inserted using the custombatch:insert call, specified by their productId. The batchId is unique for each item in the list:

{
  "entries": [
    {
      "batchId": 1113,
      "merchantId": 1234567,
      "method": "get",
      "productId": "online:en:US:1111111111"
    },
    {
      "batchId": 1114,
      "merchantId": 1234567,
      "method": "get",
      "productId": "online:en:US:2222222222"
    }
  ]
}

A successful HTTP 200 code is returned along with a response body as:

{
 "kind": "content#productsCustomBatchResponse",
 "entries": [
  {
   "kind": "content#productsCustomBatchResponseEntry",
   "batchId": 1113,
   "product": {
    "kind": "content#product",
    "id": "online:en:US:1111111111",
    "offerId": "1111111111",
    "source": "api",
    "title": "Google Tee Black",
    "description": "The Black Google Tee is available in unisex sizing and features a retail fit.",
    "link": "http://my.site.com/blacktee/",
    "imageLink": "https://shop.example.com/.../images/GGOEGXXX1100.jpg",
    "contentLanguage": "en",
    "targetCountry": "US",
    "channel": "online",
    "ageGroup": "adult",
    "availability": "in stock",
    "availabilityDate": "2019-01-25T13:00:00-08:00",
    "brand": "Google",
    "color": "black",
    "condition": "new",
    "gender": "male",
    "googleProductCategory": "1604",
    "gtin": "608802531656",
    "itemGroupId": "google_tee",
    "mpn": "608802531656",
    "price": {
     "value": "21.99",
     "currency": "USD"
    },
    "sizes": [
     "Large"
    ],
    "destinations": [
     {
      "destinationName": "Shopping",
      "intention": "required"
     }
    ]
   }
  },
  {
   "kind": "content#productsCustomBatchResponseEntry",
   "batchId": 1114,
   "product": {
    "kind": "content#product",
    "id": "online:en:US:2222222222",
    "offerId": "2222222222",
    "source": "api",
    "title": "Google Tee Green",
    "description": "100% cotton jersey fabric sets this Google t-shirt above the crowd.
    Features the google logo across the chest. Unisex sizing.",
    "link": "http://my.site.com/greentee/",
    "imageLink": "https://shop.example.com/.../images/GGOEGXXX0906.jpg",
    "contentLanguage": "en",
    "targetCountry": "US",
    "channel": "online",
    "ageGroup": "adult",
    "availability": "in stock",
    "availabilityDate": "2019-01-25T13:00:00-08:00",
    "brand": "Google",
    "color": "green",
    "condition": "new",
    "gender": "male",
    "googleProductCategory": "1604",
    "gtin": "608802531649",
    "itemGroupId": "google_tee",
    "mpn": "608802531649",
    "price": {
     "value": "21.99",
     "currency": "USD"
    },
    "sizes": [
     "Medium"
    ],
    "destinations": [
     {
      "destinationName": "Shopping",
      "intention": "required"
     }
    ]
   }
  }
 ]
}

Custombatch:Delete

The following request URL is used to make a products.custombatch with method=delete:

POST https://www.googleapis.com/content/v2/products/batch

In order to delete a product we specify the batchId that is unique to the products within this API call, the merchantId of the merchant authorized to make this API call, the method as delete for this transaction, and the productId of the products being deleted.

{
  "entries": [
    {
      "batchId": 1115,
      "merchantId": 1234567,
      "method": "delete",
      "productId": "online:en:US:1111111111"
    },
    {
      "batchId": 1116,
      "merchantId": 1234567,
      "method": "delete",
      "productId": "online:en:US:2222222222"
    }
  ]
}

A successful HTTP 200 response code and response body is returned indicating the batchId of the items that have been deleted from merchant center database:

{
 "kind": "content#productsCustomBatchResponse",
 "entries": [
  {
   "kind": "content#productsCustomBatchResponseEntry",
   "batchId": 1115
  },
  {
   "kind": "content#productsCustomBatchResponseEntry",
   "batchId": 1116
  }
 ]
}

V2 to V2.1 changes

There are a number of changes to the Product API get, delete, list, insert methods, and the Product Resource from v2 to v2.1. For details on these changes, refer to the Content API Migration Guide v2 to v2.1.

Supplemental Feeds API

The Supplemental Feeds API is a new functionality available only in the v2.1 API that allows you to update and delete data associated with specific feeds.

Product insert

POST https://www.googleapis.com/content/v2.1/merchantId/products?feedId=feedId

The v2.1 product.insert works like the v2 product.insert unless you provide a valid supplemental content API feedId (a numeric value), which causes the data associated with the duplicated item IDs to update the existing items.

You must include the offerId, targetCountry, channel, and contentLanguage. All other attributes are optional.

Use this call to change values for an existing item, such as price or availability, just as in a supplemental feed.

To create a supplemental Content API feed, first, create a supplemental feed and select the Content API as the feed type. On the next screen, select the feed that you would like to supplement. The supplemental feed provides the feedId after it creates the feed.

Product delete

DELETE https://www.googleapis.com/content/v2.1/merchantId/products/productId?feedId=feedId

Calling this method removes the supplemental data provided by the specified supplemental Content API feed.

Testing the Products API

These test examples use base_url to refer to https://www.googleapis.com. In addition, all examples use /content/v2 in the URL in a production environment. In order to test API v2.1, you would replace that with /content/v2.1. In this example we add, view, update and delete a product.

Dry Run

  1. Set the dryRun query parameter to true and make a products.insert call.

  2. If there are errors in the request body, the server will tell you where the error is.

Add a product using products.insert:

  1. Construct valid JSON for a product (or use the one in the products.insert section above).

  2. Perform an INSERT to the API endpoint as:

    INSERT https://www.googleapis.com/content/v2/merchantId/products
    
  3. Use your own merchant ID and the product JSON.

  4. You should receive an HTTP 200 status code for success and your original JSON.

View product using products.get:

  1. Perform a GET to the API endpoint as:

    GET https://www.googleapis.com/content/v2/merchantId/products/productId
    
  2. Use your own merchant ID and the product ID (Rest ID). To get the product that was inserted in the previous step, use the product ID online:en:US:1111111111.

  3. You should receive an HTTP 200 status code for success and the JSON for the product ID submitted.

Update product using products.insert

  1. Construct valid JSON for a product (modify the one in the products.insert section above). Use your own merchant ID. For example, you can change a single field in the JSON availability: in stock, to out of stock for the product ID online:en:US:1111111111 in the product.insert section above.

  2. Perform an INSERT to the API endpoint as:

    INSERT https://www.googleapis.com/content/v2/merchantId/products
    
  3. You should receive an HTTP 200 status code for success, and the JSON for the product ID submitted, with an updated value of availability: out of stock.

Delete Product

  1. Use your own merchant ID and product ID (Rest ID), for example: online:en:US:111111111.

  2. Perform a DELETE to the API endpoint as:

    DELETE https://www.googleapis.com/content/v2/merchantId/products/productId
    
  3. You should receive an HTTP 204 status code for a successful API call.

إرسال تعليقات حول...

Content API for Shopping