googleads-shopping-samples icon indicating copy to clipboard operation
googleads-shopping-samples copied to clipboard

c# - Retrieve product.list in parallel for a large quantity

Open HodayaO-D opened this issue 1 year ago • 0 comments

Hello, Given that we have approximately 80,000 offers listed in the Merchant Center, we are aware that the SDK restricts the maximum number of products retrieved to 250 per request. Is there a recommended approach for retrieving all products in parallel, considering our substantial catalog?

Based on Google Shopping examples, the predominant approach for retrieving the products.list involves fetching individual product pages and extracting the subsequent page token from the results. Only after obtaining this token can we proceed to retrieve the subsequent page. For reference, there exists a specific example from Google within the .NET context, specifically at line 85 of the GitHub repository. https://github.com/googleads/googleads-shopping-samples/blob/053bc5500405b751c671b169748b963fc142e8cc/dotnet/source/ProductsSample.cs#L105

However, I am inquiring whether an alternative approach exists—one that facilitates the asynchronous retrieval of all items within the products.list.for example a function that provides the total count of items based on a maximum result per page, along with functions that yield products for a given page index and maximum result. In this approach, I can asynchronously invoke these page indices in parallel.

Would appreciate help!

HodayaO-D avatar Apr 08 '24 12:04 HodayaO-D