AdWords
1.7K members online now
1.7K members online now
For questions related to Google Shopping and Merchant Center. Learn to optimize your Shopping ads
Guide Me
star_border
Reply

Filter the ShoppingContent.Products.list

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

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....
1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Avkeren C
February 2017

Filter the ShoppingContent.Products.list

Top Contributor
# 2
Top Contributor

You will have better luck asking at Content API for Shopping Forum https://developers.google.com/shopping-content/forum/

 

Hope it helps

Twitter | Linkedin | Community Profile | Shopping Feed Tips From FeedArmy
Did you find any helpful responses or answers to your query? If yes, please click on ‘Accept As Solution’

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Avkeren C
February 2017

Filter the ShoppingContent.Products.list

Top Contributor
# 2
Top Contributor

You will have better luck asking at Content API for Shopping Forum https://developers.google.com/shopping-content/forum/

 

Hope it helps

Twitter | Linkedin | Community Profile | Shopping Feed Tips From FeedArmy
Did you find any helpful responses or answers to your query? If yes, please click on ‘Accept As Solution’