List functions returning no resources

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



List functions returning no resources



I have been using the online testing tool, and C# to experiment with the Google Shopping APIs. I added Products and Orders with the online utility, and am able to use the Products.get and the Orders.get functions to retrieve them, both with the online utility and in C#. But when I use list functions, no data is returned and no error is occurrs; resources is always null. I have tried passing parameters that should include items, and not passing parameters without success. I'm not sure how to correct this, or if I'm doing something wrong.


Products.get


Orders.get


resources


null



The first two calls to Get work, the third call to List returns no resources:


Get


List



var product1 = await service.Products.Get(MerchantID, "online:en:US:261-H5MS").ExecuteAsync();


var product1 = await service.Products.Get(MerchantID, "online:en:US:261-H5MS").ExecuteAsync();



var product2 = await service.Products.Get(MerchantID, "online:en:US:261-LMS3").ExecuteAsync();


var product2 = await service.Products.Get(MerchantID, "online:en:US:261-LMS3").ExecuteAsync();



var products = await service.Products.List(MerchantID).ExecuteAsync();


var products = await service.Products.List(MerchantID).ExecuteAsync();



Return from List:


List




"kind": "content#productsListResponse"



"kind": "content#productsListResponse"





Please provide more information. Answers to your question will be of higher quality if you provide all relevant code, stack traces, and errors. If you'd prefer to not share the specifics of your code, coding up a general, toy example that replicates the error works too.
– Greenstick
Aug 10 at 17:05




1 Answer
1



I found the IncludeInvalidInsertedItems boolean in the online utility. If I set that to true, then it returns my apparently invalid products.


IncludeInvalidInsertedItems


true



Now my question is, how do I include that in my call in C#?



var products = await service.Products.List(MerchantID).ExecuteAsync();


var products = await service.Products.List(MerchantID).ExecuteAsync();



There is no overload to List allowing me to add options.


List






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered