How to Auto Populate Google Fields While Adding Product Using Shopify API.

How to Auto Populate Google Fields While Adding Product Using Shopify API.

Swished
Visitor
1 0 0

I am adding products using Shopify API and I am adding google fields as metadata. I have a live store and a google account is configured with my products. When I am trying to add a product then product fields are populated for Shopify but google fields are not populating.  I am sending this model.

 

{
    "title": "Developer Test",
    "body_html": "<strong>Developer Test<\/strong>",
    "Description":"Describe your item",
    "vendor": "Burton",
    "UserId":"3333-3333-3333-3333",
    "product_type": "Snowboard",
    "tags": "Size, Category",
    "isTermAndCondition":"true",
    "status":"active",
    "isProductCleaned":"true",
     "metafields": [
      {
        "key": "ageGroup",
        "value": "adult",
        "value_type": "string",
        "namespace": "google"
      }
    ],
    "variants": [
      {
        "colour": "Black",
        "fit": "Fit",
        "condition": "Metadata",
        "category": "Shirt",
        "size": "122",
        "price":"10.00",
        "RentalPrice":"10.0",
        "ResalePrice":"0.0",
        "fitDiscription":"Fit Description",
        "ConditionDescription":"Condidtion Description"
        }
    ],
    "options":[
        {
            "name":"Size",
            "values":["155"]
        },
        {
            "name":"RentalPrice",
            "values":["10.0"]
        }
    ],
    "images":[
        {
            "src":"https://images.unsplash.com/photo-1597428963794-aba7182f3abf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNzI0NjE1NA&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080"
        },
        {
            "src":"https://images.unsplash.com/photo-1597428963794-aba7182f3abf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNzI0NjE1NA&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080"
        },
        {
            "src":"https://images.unsplash.com/photo-1597428963794-aba7182f3abf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNzI0NjE1NA&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080"
        }
    ]
}
Replies 0 (0)