Filter the ShoppingContent.Products.list

180 views
Skip to first unread message

Avkeren Cohen

unread,
Feb 3, 2017, 2:23:27 AM2/3/17
to AdWords API Forum
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....

Peter Oliquino

unread,
Feb 3, 2017, 3:19:37 AM2/3/17
to AdWords API Forum
Hi,

Our team provides support for AdWords API related concerns only. It seems that your concern is already out of scope for our team. I would suggest that you get in contact with the AdWords Merchant Center community forum as they are better equipped to help you out.

Best regards,
Peter
AdWords API Team

Avkeren Cohen

unread,
Feb 3, 2017, 9:53:42 AM2/3/17
to AdWords API Forum
Hi Peter,

This is regarding one of the Advanced APIs. https://developers.google.com/apps-script/advanced/shopping-content
I Looked at the AdWords Merchant Center community and also posted the question there but it doesn't look like they have any experience with APIs.

So do you know of any filter I can use with the ShoppingContent.Products.list 

Thanks again....

Avkeren Cohen

unread,
Feb 4, 2017, 2:16:19 PM2/4/17
to AdWords API Forum
Just heard back from someone that works on Content API for Shopping. They said that there are no filtering methods at the moment for products. 

Peter Oliquino

unread,
Feb 5, 2017, 9:40:12 PM2/5/17
to AdWords API Forum
Hi Avkeren,

Thank you for providing the link. I would recommend that you contact the Google Apps Scripts support via this link as they are more equipped to handle your concern.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages