Shopify Python API All Products in All Collections

Highlighted
Tourist
10 0 2
 
for x in collection_listings:
    collection_listing = shopify.CollectionListing()
    collection_listing.id = x.collection_id
    print(collection_listing)
    product_ids = collection_listing.product_ids()
    print(product_ids)
This is an example output. 

Why am I not getting all the products in those collections?
[collection_listing(158091509814), collection_listing(158091149366),
collection_listing(158091345974), collection_listing(158091247670), collection_listing(158090919990), collection_listing(158090854454),
................................................ [] collection_listing(158091149366) [] collection_listing(158091542582) [] collection_listing(96181747766) [] collection_listing(158091345974)
 
0 Likes
Highlighted
Tourist
10 0 2

bump

0 Likes