Hi,
How do I filter the ShoppingContent.Products.list ? (I am using the the Google Content API for Shopping in Apps Script.)
Supposing I want to get from the Merchant Center the info productsItemdata of only items that there customLabel1 is winter pants
Is there a selector that can be used?
I did the following but it didn't work.
var products = ShoppingContent.Products.list(merchantId, {
pageToken: pageToken,
maxResults: maxResults
})
.withCondition ('customLabel1 = "winter pants"')
;
I get for the above:
TypeError: Cannot find function withCondition in object {"kind":"content#productsListResponse","nextPageToken":.........
Thanks....