You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve a barcode to a product via Google web search, then return its Google Shopping seller offers (source + price per merchant).
1776
+
Google Shopping seller offers (source + price + link per merchant) for a product identified either by ``barcode`` (resolved via Google web search) or by its Google Shopping ``catalog_id`` (read straight off Google's product page, all seller pages fetched in parallel).
String catalogId ="catalogId_example"; // String | Google Shopping catalogid (the `catalog_id` on /shopping/search tiles, or `prds=catalogid:<id>` in a Google Shopping URL). Alternative to `barcode`; exactly one of the two is required
1801
1802
String gl ="gl_example"; // String | Country code (ISO 3166 alpha-2)
1802
1803
String hl ="en"; // String | Language code
1804
+
String domain ="google.com"; // String | Google domain
1803
1805
try {
1804
-
Object result = apiInstance.googleMultiSellerOffersByBarcode(barcode, gl, hl);
1806
+
Object result = apiInstance.googleMultiSellerOffersByBarcode(barcode, catalogId, gl, hl, domain);
1805
1807
System.out.println(result);
1806
1808
} catch (ApiException e) {
1807
1809
System.err.println("Exception when calling GoogleApi#googleMultiSellerOffersByBarcode");
|**catalogId**|**String**| Google Shopping catalogid (the `catalog_id` on /shopping/search tiles, or `prds=catalogid:<id>` in a Google Shopping URL). Alternative to `barcode`; exactly one of the two is required |[optional]|
1822
1825
|**gl**|**String**| Country code (ISO 3166 alpha-2) |[optional]|
1823
1826
|**hl**|**String**| Language code |[optional][default to en]|
1827
+
|**domain**|**String**| Google domain |[optional][default to google.com]|
* @param catalogId Google Shopping catalogid (the `catalog_id` on /shopping/search tiles, or `prds=catalogid:<id>` in a Google Shopping URL). Alternative to `barcode`; exactly one of the two is required (optional)
3851
3852
* @param gl Country code (ISO 3166 alpha-2) (optional)
3852
3853
* @param hl Language code (optional, default to en)
3854
+
* @param domain Google domain (optional, default to google.com)
3853
3855
* @param _callback Callback for upload/download progress
3854
3856
* @return Call to execute
3855
3857
* @throws ApiException If fail to serialize the request body object
@@ -3861,7 +3863,7 @@ public okhttp3.Call googleInterestOverTimeAsync(String q, String geo, String dat
* Google Shopping seller offers (source + price + link per merchant) for a product identified either by ``barcode`` (resolved via Google web search) or by its Google Shopping ``catalog_id`` (read straight off Google's product page, all seller pages fetched in parallel).
* @param catalogId Google Shopping catalogid (the `catalog_id` on /shopping/search tiles, or `prds=catalogid:<id>` in a Google Shopping URL). Alternative to `barcode`; exactly one of the two is required (optional)
3935
3941
* @param gl Country code (ISO 3166 alpha-2) (optional)
3936
3942
* @param hl Language code (optional, default to en)
3943
+
* @param domain Google domain (optional, default to google.com)
3937
3944
* @return Object
3938
3945
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3939
3946
* @http.response.details
@@ -3944,17 +3951,19 @@ private okhttp3.Call googleMultiSellerOffersByBarcodeValidateBeforeCall(String b
* Google Shopping seller offers (source + price + link per merchant) for a product identified either by ``barcode`` (resolved via Google web search) or by its Google Shopping ``catalog_id`` (read straight off Google's product page, all seller pages fetched in parallel).
* @param catalogId Google Shopping catalogid (the `catalog_id` on /shopping/search tiles, or `prds=catalogid:<id>` in a Google Shopping URL). Alternative to `barcode`; exactly one of the two is required (optional)
3956
3964
* @param gl Country code (ISO 3166 alpha-2) (optional)
3957
3965
* @param hl Language code (optional, default to en)
3966
+
* @param domain Google domain (optional, default to google.com)
3958
3967
* @return ApiResponse<Object>
3959
3968
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* Google Shopping seller offers (source + price + link per merchant) for a product identified either by ``barcode`` (resolved via Google web search) or by its Google Shopping ``catalog_id`` (read straight off Google's product page, all seller pages fetched in parallel).
* @param catalogId Google Shopping catalogid (the `catalog_id` on /shopping/search tiles, or `prds=catalogid:<id>` in a Google Shopping URL). Alternative to `barcode`; exactly one of the two is required (optional)
3978
3988
* @param gl Country code (ISO 3166 alpha-2) (optional)
3979
3989
* @param hl Language code (optional, default to en)
3990
+
* @param domain Google domain (optional, default to google.com)
3980
3991
* @param _callback The callback to be executed when the API call finishes
3981
3992
* @return The request call
3982
3993
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -3988,9 +3999,9 @@ public ApiResponse<Object> googleMultiSellerOffersByBarcodeWithHttpInfo(String b
Copy file name to clipboardExpand all lines: src/test/java/com/scrapebadger/client/api/GoogleApiTest.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -429,16 +429,18 @@ public void googleInterestOverTimeTest() throws ApiException {
429
429
/**
430
430
* Multi-seller offers by barcode
431
431
*
432
-
* Resolve a barcode to a product via Google web search, then return its Google Shopping seller offers (source + price per merchant).
432
+
* Google Shopping seller offers (source + price + link per merchant) for a product identified either by ``barcode`` (resolved via Google web search) or by its Google Shopping ``catalog_id`` (read straight off Google's product page, all seller pages fetched in parallel).
0 commit comments