732 lines
94 KiB
HTML
732 lines
94 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: class Resource</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns a single product<br>
|
|
<br>
|
|
Args:<br>
|
|
debug_searchResponse: boolean, Google Internal<br>
|
|
taxonomy: string, Merchant taxonomy<br>
|
|
recommendations_useGcsConfig: boolean, This parameter is currently ignored<br>
|
|
productFields: string, Google Internal<br>
|
|
accountId: integer, Merchant center account id (required)<br>
|
|
source: string, Query source (required)<br>
|
|
recommendations_include: string, Recommendation specification<br>
|
|
debug_enabled: boolean, Google Internal<br>
|
|
location: string, Location used to determine tax and shipping<br>
|
|
debug_searchRequest: boolean, Google Internal<br>
|
|
productId: string, Id of product (required)<br>
|
|
productIdType: string, Type of productId (required)<br>
|
|
debug_enableLogging: boolean, Google Internal<br>
|
|
recommendations_enabled: boolean, Whether to return recommendation information<br>
|
|
categories_enabled: boolean, Whether to return category information<br>
|
|
attributeFilter: string, Comma separated list of attributes to return<br>
|
|
categories_useGcsConfig: boolean, This parameter is currently ignored<br>
|
|
thumbnails: string, Thumbnail specification<br>
|
|
categories_include: string, Category specification<br>
|
|
plusOne: string, +1 rendering specification.<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"selfLink": "A String", # Self link of product.<br>
|
|
"kind": "shopping#product", # The kind of item, always shopping#product.<br>
|
|
"product": { # Product.<br>
|
|
"queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.<br>
|
|
"gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".<br>
|
|
"images": [ # Images of product.<br>
|
|
{<br>
|
|
"link": "A String", # Link to product image.<br>
|
|
"thumbnails": [ # Thumbnails of product image.<br>
|
|
{<br>
|
|
"content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).<br>
|
|
"width": 42, # Width of thumbnail (omitted if not specified in the request).<br>
|
|
"link": "A String", # Link to thumbnail.<br>
|
|
"height": 42, # Height of thumbnail (omitted if not specified in the request).<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"inventories": [ # Inventories of product.<br>
|
|
{<br>
|
|
"distance": 3.14, # Distance of product inventory.<br>
|
|
"price": 3.14, # Price of product inventory.<br>
|
|
"storeId": "A String", # Store ID of product inventory.<br>
|
|
"tax": 3.14, # Tax of product inventory.<br>
|
|
"shipping": 3.14, # Shipping cost of product inventory.<br>
|
|
"currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).<br>
|
|
"distanceUnit": "A String", # Distance unit of product inventory.<br>
|
|
"availability": "A String", # Availability of product inventory.<br>
|
|
"channel": "A String", # Channel of product inventory (one of: online, local).<br>
|
|
},<br>
|
|
],<br>
|
|
"author": { # Author of product.<br>
|
|
"name": "A String", # Name of product author.<br>
|
|
"accountId": "A String", # Account id of product author.<br>
|
|
},<br>
|
|
"condition": "A String", # Condition of product (one of: new, refurbished, used).<br>
|
|
"providedId": "A String", # Merchant-provided id of product (available only with a cx source).<br>
|
|
"internal8": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"description": "A String", # Description of product.<br>
|
|
"gtins": [ # List of all the product's GTINs (in GTIN-14 format).<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"internal1": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"brand": "A String", # Brand of product.<br>
|
|
"internal3": "A String", # Google Internal.<br>
|
|
"internal4": [ # Google Internal.<br>
|
|
{<br>
|
|
"node": 42,<br>
|
|
"confidence": 3.14,<br>
|
|
},<br>
|
|
],<br>
|
|
"internal6": "A String", # Google Internal.<br>
|
|
"internal7": True or False, # Google Internal.<br>
|
|
"link": "A String", # Link to product.<br>
|
|
"attributes": [ # Attributes of product (available only with a cx source).<br>
|
|
{<br>
|
|
"type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).<br>
|
|
"value": "", # Value of product attribute.<br>
|
|
"displayName": "A String", # Display Name of prodct attribute.<br>
|
|
"name": "A String", # Name of product attribute.<br>
|
|
"unit": "A String", # Unit of product attribute.<br>
|
|
},<br>
|
|
],<br>
|
|
"totalMatchingVariants": 42, # The number of variant offers returned that matched the query.<br>
|
|
"variants": [ # A list of variant offers associated with this product.<br>
|
|
{<br>
|
|
"variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.<br>
|
|
},<br>
|
|
],<br>
|
|
"modificationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted modification time and date of product.<br>
|
|
"categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"language": "A String", # BCP 47 language tag of language of product.<br>
|
|
"country": "A String", # ISO 3166 code of target country of product.<br>
|
|
"title": "A String", # Title of product.<br>
|
|
"creationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted creation time and date of product.<br>
|
|
"internal14": 3.14, # Google Internal.<br>
|
|
"internal12": "A String", # Google Internal.<br>
|
|
"internal13": 3.14, # Google Internal.<br>
|
|
"internal10": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"plusOne": "A String", # Code to add to the page to render the +1 content.<br>
|
|
"googleId": "A String", # Google id of product.<br>
|
|
"internal15": 3.14, # Google Internal.<br>
|
|
},<br>
|
|
"requestId": "A String", # Unique identifier for this request.<br>
|
|
"recommendations": [ # Recommendations for product.<br>
|
|
{<br>
|
|
"recommendationList": [ # List of recommendations.<br>
|
|
{<br>
|
|
"product": { # Recommended product.<br>
|
|
"queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.<br>
|
|
"gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".<br>
|
|
"images": [ # Images of product.<br>
|
|
{<br>
|
|
"link": "A String", # Link to product image.<br>
|
|
"thumbnails": [ # Thumbnails of product image.<br>
|
|
{<br>
|
|
"content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).<br>
|
|
"width": 42, # Width of thumbnail (omitted if not specified in the request).<br>
|
|
"link": "A String", # Link to thumbnail.<br>
|
|
"height": 42, # Height of thumbnail (omitted if not specified in the request).<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"inventories": [ # Inventories of product.<br>
|
|
{<br>
|
|
"distance": 3.14, # Distance of product inventory.<br>
|
|
"price": 3.14, # Price of product inventory.<br>
|
|
"storeId": "A String", # Store ID of product inventory.<br>
|
|
"tax": 3.14, # Tax of product inventory.<br>
|
|
"shipping": 3.14, # Shipping cost of product inventory.<br>
|
|
"currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).<br>
|
|
"distanceUnit": "A String", # Distance unit of product inventory.<br>
|
|
"availability": "A String", # Availability of product inventory.<br>
|
|
"channel": "A String", # Channel of product inventory (one of: online, local).<br>
|
|
},<br>
|
|
],<br>
|
|
"author": { # Author of product.<br>
|
|
"name": "A String", # Name of product author.<br>
|
|
"accountId": "A String", # Account id of product author.<br>
|
|
},<br>
|
|
"condition": "A String", # Condition of product (one of: new, refurbished, used).<br>
|
|
"providedId": "A String", # Merchant-provided id of product (available only with a cx source).<br>
|
|
"internal8": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"description": "A String", # Description of product.<br>
|
|
"gtins": [ # List of all the product's GTINs (in GTIN-14 format).<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"internal1": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"brand": "A String", # Brand of product.<br>
|
|
"internal3": "A String", # Google Internal.<br>
|
|
"internal4": [ # Google Internal.<br>
|
|
{<br>
|
|
"node": 42,<br>
|
|
"confidence": 3.14,<br>
|
|
},<br>
|
|
],<br>
|
|
"internal6": "A String", # Google Internal.<br>
|
|
"internal7": True or False, # Google Internal.<br>
|
|
"link": "A String", # Link to product.<br>
|
|
"attributes": [ # Attributes of product (available only with a cx source).<br>
|
|
{<br>
|
|
"type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).<br>
|
|
"value": "", # Value of product attribute.<br>
|
|
"displayName": "A String", # Display Name of prodct attribute.<br>
|
|
"name": "A String", # Name of product attribute.<br>
|
|
"unit": "A String", # Unit of product attribute.<br>
|
|
},<br>
|
|
],<br>
|
|
"totalMatchingVariants": 42, # The number of variant offers returned that matched the query.<br>
|
|
"variants": [ # A list of variant offers associated with this product.<br>
|
|
{<br>
|
|
"variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.<br>
|
|
},<br>
|
|
],<br>
|
|
"modificationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted modification time and date of product.<br>
|
|
"categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"language": "A String", # BCP 47 language tag of language of product.<br>
|
|
"country": "A String", # ISO 3166 code of target country of product.<br>
|
|
"title": "A String", # Title of product.<br>
|
|
"creationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted creation time and date of product.<br>
|
|
"internal14": 3.14, # Google Internal.<br>
|
|
"internal12": "A String", # Google Internal.<br>
|
|
"internal13": 3.14, # Google Internal.<br>
|
|
"internal10": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"plusOne": "A String", # Code to add to the page to render the +1 content.<br>
|
|
"googleId": "A String", # Google id of product.<br>
|
|
"internal15": 3.14, # Google Internal.<br>
|
|
},<br>
|
|
},<br>
|
|
],<br>
|
|
"type": "A String", # Type of recommendation list (one of: all, purchaseToPurchase, visitToVisit, visitToPurchase).<br>
|
|
},<br>
|
|
],<br>
|
|
"debug": { # Google internal.<br>
|
|
"searchResponse": "A String", # Google internal.<br>
|
|
"searchRequest": "A String", # Google internal.<br>
|
|
"rdcResponse": "A String", # Google internal.<br>
|
|
"backendTimes": [ # Google internal<br>
|
|
{<br>
|
|
"serverMillis": "A String", # Google internal<br>
|
|
"hostName": "A String", # Google internal<br>
|
|
"name": "A String", # Google internal<br>
|
|
"elapsedMillis": "A String", # Google internal<br>
|
|
},<br>
|
|
],<br>
|
|
"elapsedMillis": "A String", # Google internal.<br>
|
|
},<br>
|
|
"id": "A String", # Id of product.<br>
|
|
"categories": [ # List of categories for product.<br>
|
|
{<br>
|
|
"url": "A String", # URL of category.<br>
|
|
"shortName": "A String", # Short name of category.<br>
|
|
"parents": [ # Ids of the parents of the category.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"id": "A String", # Id of category.<br>
|
|
},<br>
|
|
],<br>
|
|
}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns a list of products and content modules<br>
|
|
<br>
|
|
Args:<br>
|
|
facets_enabled: boolean, Whether to return facet information<br>
|
|
debug_geocodeRequest: boolean, Google Internal<br>
|
|
debug_searchResponse: boolean, Google Internal<br>
|
|
debug_rdcRequest: boolean, Google Internal<br>
|
|
taxonomy: string, Taxonomy name<br>
|
|
promotions_enabled: boolean, Whether to return promotion information<br>
|
|
debug_rdcResponse: boolean, Google Internal<br>
|
|
productFields: string, Google Internal<br>
|
|
channels: string, Channels specification<br>
|
|
facets_discover: string, Facets to discover<br>
|
|
startIndex: integer, Index (1-based) of first product to return<br>
|
|
crowdBy: string, Crowding specification<br>
|
|
spelling_enabled: boolean, Whether to return spelling suggestions<br>
|
|
debug_enabled: boolean, Google Internal<br>
|
|
spelling_useGcsConfig: boolean, This parameter is currently ignored<br>
|
|
source: string, Query source (required)<br>
|
|
useCase: string, One of CommerceSearchUseCase, ShoppingApiUseCase<br>
|
|
debug_geocodeResponse: boolean, Google Internal<br>
|
|
location: string, Location used to determine tax and shipping<br>
|
|
maxVariants: integer, Maximum number of variant results to return per result<br>
|
|
debug_searchRequest: boolean, Google Internal<br>
|
|
relatedQueries_enabled: boolean, Whether to return related queries<br>
|
|
facets_useGcsConfig: boolean, Whether to return facet information as configured in the GCS account<br>
|
|
safe: boolean, Whether safe search is enabled. Default: true<br>
|
|
boostBy: string, Boosting specification<br>
|
|
debug_enableLogging: boolean, Google Internal<br>
|
|
maxResults: integer, Maximum number of results to return<br>
|
|
categories_enabled: boolean, Whether to return category information<br>
|
|
attributeFilter: string, Comma separated list of attributes to return<br>
|
|
categories_useGcsConfig: boolean, This parameter is currently ignored<br>
|
|
minAvailability: string, A parameter<br>
|
|
Allowed values<br>
|
|
inStock - Only in stcok prodicts will be returned<br>
|
|
limited - Limited availability and in stock products will be returned<br>
|
|
outOfStock - Out of stock, limited availability and in stock products will be returned<br>
|
|
unknown - All products will be returned<br>
|
|
facets_include: string, Facets to include (applies when useGcsConfig == false)<br>
|
|
categories_include: string, Category specification<br>
|
|
language: string, Language restriction (BCP 47)<br>
|
|
currency: string, Currency restriction (ISO 4217)<br>
|
|
sayt_enabled: boolean, Google Internal<br>
|
|
rankBy: string, Ranking specification<br>
|
|
redirects_enabled: boolean, Whether to return redirect information<br>
|
|
restrictBy: string, Restriction specification<br>
|
|
q: string, Search query<br>
|
|
redirects_useGcsConfig: boolean, Whether to return redirect information as configured in the GCS account<br>
|
|
sayt_useGcsConfig: boolean, Google Internal<br>
|
|
country: string, Country restriction (ISO 3166)<br>
|
|
relatedQueries_useGcsConfig: boolean, This parameter is currently ignored<br>
|
|
promotions_useGcsConfig: boolean, Whether to return promotion information as configured in the GCS account<br>
|
|
plusOne: string, +1 rendering specification.<br>
|
|
thumbnails: string, Image thumbnails specification<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"promotions": [ # List of promotions.<br>
|
|
{<br>
|
|
"product": { # Product of promotion (omitted if type is not product).<br>
|
|
"queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.<br>
|
|
"gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".<br>
|
|
"images": [ # Images of product.<br>
|
|
{<br>
|
|
"link": "A String", # Link to product image.<br>
|
|
"thumbnails": [ # Thumbnails of product image.<br>
|
|
{<br>
|
|
"content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).<br>
|
|
"width": 42, # Width of thumbnail (omitted if not specified in the request).<br>
|
|
"link": "A String", # Link to thumbnail.<br>
|
|
"height": 42, # Height of thumbnail (omitted if not specified in the request).<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"inventories": [ # Inventories of product.<br>
|
|
{<br>
|
|
"distance": 3.14, # Distance of product inventory.<br>
|
|
"price": 3.14, # Price of product inventory.<br>
|
|
"storeId": "A String", # Store ID of product inventory.<br>
|
|
"tax": 3.14, # Tax of product inventory.<br>
|
|
"shipping": 3.14, # Shipping cost of product inventory.<br>
|
|
"currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).<br>
|
|
"distanceUnit": "A String", # Distance unit of product inventory.<br>
|
|
"availability": "A String", # Availability of product inventory.<br>
|
|
"channel": "A String", # Channel of product inventory (one of: online, local).<br>
|
|
},<br>
|
|
],<br>
|
|
"author": { # Author of product.<br>
|
|
"name": "A String", # Name of product author.<br>
|
|
"accountId": "A String", # Account id of product author.<br>
|
|
},<br>
|
|
"condition": "A String", # Condition of product (one of: new, refurbished, used).<br>
|
|
"providedId": "A String", # Merchant-provided id of product (available only with a cx source).<br>
|
|
"internal8": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"description": "A String", # Description of product.<br>
|
|
"gtins": [ # List of all the product's GTINs (in GTIN-14 format).<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"internal1": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"brand": "A String", # Brand of product.<br>
|
|
"internal3": "A String", # Google Internal.<br>
|
|
"internal4": [ # Google Internal.<br>
|
|
{<br>
|
|
"node": 42,<br>
|
|
"confidence": 3.14,<br>
|
|
},<br>
|
|
],<br>
|
|
"internal6": "A String", # Google Internal.<br>
|
|
"internal7": True or False, # Google Internal.<br>
|
|
"link": "A String", # Link to product.<br>
|
|
"attributes": [ # Attributes of product (available only with a cx source).<br>
|
|
{<br>
|
|
"type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).<br>
|
|
"value": "", # Value of product attribute.<br>
|
|
"displayName": "A String", # Display Name of prodct attribute.<br>
|
|
"name": "A String", # Name of product attribute.<br>
|
|
"unit": "A String", # Unit of product attribute.<br>
|
|
},<br>
|
|
],<br>
|
|
"totalMatchingVariants": 42, # The number of variant offers returned that matched the query.<br>
|
|
"variants": [ # A list of variant offers associated with this product.<br>
|
|
{<br>
|
|
"variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.<br>
|
|
},<br>
|
|
],<br>
|
|
"modificationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted modification time and date of product.<br>
|
|
"categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"language": "A String", # BCP 47 language tag of language of product.<br>
|
|
"country": "A String", # ISO 3166 code of target country of product.<br>
|
|
"title": "A String", # Title of product.<br>
|
|
"creationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted creation time and date of product.<br>
|
|
"internal14": 3.14, # Google Internal.<br>
|
|
"internal12": "A String", # Google Internal.<br>
|
|
"internal13": 3.14, # Google Internal.<br>
|
|
"internal10": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"plusOne": "A String", # Code to add to the page to render the +1 content.<br>
|
|
"googleId": "A String", # Google id of product.<br>
|
|
"internal15": 3.14, # Google Internal.<br>
|
|
},<br>
|
|
"description": "A String", # Description of promotion (omitted if type is not standard).<br>
|
|
"imageLink": "A String", # Link to promotion image (omitted if type is not standard).<br>
|
|
"destLink": "A String", # Link to promotion (omitted if type is not standard).<br>
|
|
"customHtml": "A String", # Custom HTML of promotion (omitted if type is not custom).<br>
|
|
"link": "A String", # Link to promotion without scheme. DEPRECATED. WILL BE REMOVED SOON. USE destLink.<br>
|
|
"customFields": [ # List of custom fields of promotion.<br>
|
|
{<br>
|
|
"name": "A String", # Name of field.<br>
|
|
"value": "A String", # Value of field.<br>
|
|
},<br>
|
|
],<br>
|
|
"type": "A String", # Type of promotion (one of: standard, product, custom).<br>
|
|
"name": "A String", # Name of promotion (omitted if type is not standard).<br>
|
|
},<br>
|
|
],<br>
|
|
"selfLink": "A String", # Self link of feed.<br>
|
|
"kind": "shopping#products", # The fixed string "shopping#products". The kind of feed returned.<br>
|
|
"stores": [ # List of returned stores.<br>
|
|
{<br>
|
|
"storeCode": "A String", # Merchant-supplied store code.<br>
|
|
"name": "A String", # Name of store.<br>
|
|
"storeId": "A String", # Id of store.<br>
|
|
"telephone": "A String", # Telephone number of store.<br>
|
|
"location": "A String", # Location of store.<br>
|
|
"address": "A String", # Address of store.<br>
|
|
},<br>
|
|
],<br>
|
|
"currentItemCount": 42, # Current item count.<br>
|
|
"items": [ # List of returned products.<br>
|
|
{<br>
|
|
"selfLink": "A String", # Self link of product.<br>
|
|
"kind": "shopping#product", # The kind of item, always shopping#product.<br>
|
|
"product": { # Product.<br>
|
|
"queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.<br>
|
|
"gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".<br>
|
|
"images": [ # Images of product.<br>
|
|
{<br>
|
|
"link": "A String", # Link to product image.<br>
|
|
"thumbnails": [ # Thumbnails of product image.<br>
|
|
{<br>
|
|
"content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).<br>
|
|
"width": 42, # Width of thumbnail (omitted if not specified in the request).<br>
|
|
"link": "A String", # Link to thumbnail.<br>
|
|
"height": 42, # Height of thumbnail (omitted if not specified in the request).<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"inventories": [ # Inventories of product.<br>
|
|
{<br>
|
|
"distance": 3.14, # Distance of product inventory.<br>
|
|
"price": 3.14, # Price of product inventory.<br>
|
|
"storeId": "A String", # Store ID of product inventory.<br>
|
|
"tax": 3.14, # Tax of product inventory.<br>
|
|
"shipping": 3.14, # Shipping cost of product inventory.<br>
|
|
"currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).<br>
|
|
"distanceUnit": "A String", # Distance unit of product inventory.<br>
|
|
"availability": "A String", # Availability of product inventory.<br>
|
|
"channel": "A String", # Channel of product inventory (one of: online, local).<br>
|
|
},<br>
|
|
],<br>
|
|
"author": { # Author of product.<br>
|
|
"name": "A String", # Name of product author.<br>
|
|
"accountId": "A String", # Account id of product author.<br>
|
|
},<br>
|
|
"condition": "A String", # Condition of product (one of: new, refurbished, used).<br>
|
|
"providedId": "A String", # Merchant-provided id of product (available only with a cx source).<br>
|
|
"internal8": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"description": "A String", # Description of product.<br>
|
|
"gtins": [ # List of all the product's GTINs (in GTIN-14 format).<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"internal1": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"brand": "A String", # Brand of product.<br>
|
|
"internal3": "A String", # Google Internal.<br>
|
|
"internal4": [ # Google Internal.<br>
|
|
{<br>
|
|
"node": 42,<br>
|
|
"confidence": 3.14,<br>
|
|
},<br>
|
|
],<br>
|
|
"internal6": "A String", # Google Internal.<br>
|
|
"internal7": True or False, # Google Internal.<br>
|
|
"link": "A String", # Link to product.<br>
|
|
"attributes": [ # Attributes of product (available only with a cx source).<br>
|
|
{<br>
|
|
"type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).<br>
|
|
"value": "", # Value of product attribute.<br>
|
|
"displayName": "A String", # Display Name of prodct attribute.<br>
|
|
"name": "A String", # Name of product attribute.<br>
|
|
"unit": "A String", # Unit of product attribute.<br>
|
|
},<br>
|
|
],<br>
|
|
"totalMatchingVariants": 42, # The number of variant offers returned that matched the query.<br>
|
|
"variants": [ # A list of variant offers associated with this product.<br>
|
|
{<br>
|
|
"variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.<br>
|
|
},<br>
|
|
],<br>
|
|
"modificationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted modification time and date of product.<br>
|
|
"categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"language": "A String", # BCP 47 language tag of language of product.<br>
|
|
"country": "A String", # ISO 3166 code of target country of product.<br>
|
|
"title": "A String", # Title of product.<br>
|
|
"creationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted creation time and date of product.<br>
|
|
"internal14": 3.14, # Google Internal.<br>
|
|
"internal12": "A String", # Google Internal.<br>
|
|
"internal13": 3.14, # Google Internal.<br>
|
|
"internal10": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"plusOne": "A String", # Code to add to the page to render the +1 content.<br>
|
|
"googleId": "A String", # Google id of product.<br>
|
|
"internal15": 3.14, # Google Internal.<br>
|
|
},<br>
|
|
"requestId": "A String", # Unique identifier for this request.<br>
|
|
"recommendations": [ # Recommendations for product.<br>
|
|
{<br>
|
|
"recommendationList": [ # List of recommendations.<br>
|
|
{<br>
|
|
"product": { # Recommended product.<br>
|
|
"queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.<br>
|
|
"gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".<br>
|
|
"images": [ # Images of product.<br>
|
|
{<br>
|
|
"link": "A String", # Link to product image.<br>
|
|
"thumbnails": [ # Thumbnails of product image.<br>
|
|
{<br>
|
|
"content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).<br>
|
|
"width": 42, # Width of thumbnail (omitted if not specified in the request).<br>
|
|
"link": "A String", # Link to thumbnail.<br>
|
|
"height": 42, # Height of thumbnail (omitted if not specified in the request).<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"inventories": [ # Inventories of product.<br>
|
|
{<br>
|
|
"distance": 3.14, # Distance of product inventory.<br>
|
|
"price": 3.14, # Price of product inventory.<br>
|
|
"storeId": "A String", # Store ID of product inventory.<br>
|
|
"tax": 3.14, # Tax of product inventory.<br>
|
|
"shipping": 3.14, # Shipping cost of product inventory.<br>
|
|
"currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).<br>
|
|
"distanceUnit": "A String", # Distance unit of product inventory.<br>
|
|
"availability": "A String", # Availability of product inventory.<br>
|
|
"channel": "A String", # Channel of product inventory (one of: online, local).<br>
|
|
},<br>
|
|
],<br>
|
|
"author": { # Author of product.<br>
|
|
"name": "A String", # Name of product author.<br>
|
|
"accountId": "A String", # Account id of product author.<br>
|
|
},<br>
|
|
"condition": "A String", # Condition of product (one of: new, refurbished, used).<br>
|
|
"providedId": "A String", # Merchant-provided id of product (available only with a cx source).<br>
|
|
"internal8": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"description": "A String", # Description of product.<br>
|
|
"gtins": [ # List of all the product's GTINs (in GTIN-14 format).<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"internal1": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"brand": "A String", # Brand of product.<br>
|
|
"internal3": "A String", # Google Internal.<br>
|
|
"internal4": [ # Google Internal.<br>
|
|
{<br>
|
|
"node": 42,<br>
|
|
"confidence": 3.14,<br>
|
|
},<br>
|
|
],<br>
|
|
"internal6": "A String", # Google Internal.<br>
|
|
"internal7": True or False, # Google Internal.<br>
|
|
"link": "A String", # Link to product.<br>
|
|
"attributes": [ # Attributes of product (available only with a cx source).<br>
|
|
{<br>
|
|
"type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).<br>
|
|
"value": "", # Value of product attribute.<br>
|
|
"displayName": "A String", # Display Name of prodct attribute.<br>
|
|
"name": "A String", # Name of product attribute.<br>
|
|
"unit": "A String", # Unit of product attribute.<br>
|
|
},<br>
|
|
],<br>
|
|
"totalMatchingVariants": 42, # The number of variant offers returned that matched the query.<br>
|
|
"variants": [ # A list of variant offers associated with this product.<br>
|
|
{<br>
|
|
"variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.<br>
|
|
},<br>
|
|
],<br>
|
|
"modificationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted modification time and date of product.<br>
|
|
"categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"language": "A String", # BCP 47 language tag of language of product.<br>
|
|
"country": "A String", # ISO 3166 code of target country of product.<br>
|
|
"title": "A String", # Title of product.<br>
|
|
"creationTime": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatted creation time and date of product.<br>
|
|
"internal14": 3.14, # Google Internal.<br>
|
|
"internal12": "A String", # Google Internal.<br>
|
|
"internal13": 3.14, # Google Internal.<br>
|
|
"internal10": [ # Google Internal.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"plusOne": "A String", # Code to add to the page to render the +1 content.<br>
|
|
"googleId": "A String", # Google id of product.<br>
|
|
"internal15": 3.14, # Google Internal.<br>
|
|
},<br>
|
|
},<br>
|
|
],<br>
|
|
"type": "A String", # Type of recommendation list (one of: all, purchaseToPurchase, visitToVisit, visitToPurchase).<br>
|
|
},<br>
|
|
],<br>
|
|
"debug": { # Google internal.<br>
|
|
"searchResponse": "A String", # Google internal.<br>
|
|
"searchRequest": "A String", # Google internal.<br>
|
|
"rdcResponse": "A String", # Google internal.<br>
|
|
"backendTimes": [ # Google internal<br>
|
|
{<br>
|
|
"serverMillis": "A String", # Google internal<br>
|
|
"hostName": "A String", # Google internal<br>
|
|
"name": "A String", # Google internal<br>
|
|
"elapsedMillis": "A String", # Google internal<br>
|
|
},<br>
|
|
],<br>
|
|
"elapsedMillis": "A String", # Google internal.<br>
|
|
},<br>
|
|
"id": "A String", # Id of product.<br>
|
|
"categories": [ # List of categories for product.<br>
|
|
{<br>
|
|
"url": "A String", # URL of category.<br>
|
|
"shortName": "A String", # Short name of category.<br>
|
|
"parents": [ # Ids of the parents of the category.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"id": "A String", # Id of category.<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"facets": [ # List of facets.<br>
|
|
{<br>
|
|
"count": 42, # Number of products matching the query that have a value for the facet's property or attribute.<br>
|
|
"displayName": "A String", # Display name of facet.<br>
|
|
"name": "A String", # Name of the facet's attribute (omitted for property facets).<br>
|
|
"buckets": [ # List of Buckets within facet.<br>
|
|
{<br>
|
|
"count": 42, # Number of products matching the query that have a value for the facet's property or attribute that matches the bucket.<br>
|
|
"minExclusive": True or False, # Whether the lower bound of the bucket is exclusive (omitted for value buckets or if the range has no lower bound).<br>
|
|
"min": "", # Lower bound of the bucket (omitted for value buckets or if the range has no lower bound).<br>
|
|
"max": "", # Upper bound of the bucket (omitted for value buckets or if the range has no upper bound).<br>
|
|
"value": "", # Value of the bucket (omitted for range buckets).<br>
|
|
"maxExclusive": True or False, # Whether the upper bound of the bucket is exclusive (omitted for value buckets or if the range has no upper bound).<br>
|
|
},<br>
|
|
],<br>
|
|
"property": "A String", # Property of facet (omitted for attribute facets).<br>
|
|
"type": "A String", # Type of facet's attribute (omitted for property facets, one of: text, bool, int, float).<br>
|
|
"unit": "A String", # Unit of the facet's property or attribute (omitted if the facet's property or attribute has no unit).<br>
|
|
},<br>
|
|
],<br>
|
|
"itemsPerPage": 42, # Number of items per page of results.<br>
|
|
"redirects": [ # Redirects.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"nextLink": "A String", # Next link of feed.<br>
|
|
"totalItems": 42, # Total number of search results.<br>
|
|
"startIndex": 42, # 1-based index of the first item in the search results.<br>
|
|
"etag": "A String", # Etag of feed.<br>
|
|
"requestId": "A String", # Unique identifier for this request.<br>
|
|
"relatedQueries": [ # Related queries.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"debug": { # Google internal.<br>
|
|
"searchResponse": "A String", # Google internal.<br>
|
|
"searchRequest": "A String", # Google internal.<br>
|
|
"rdcResponse": "A String", # Google internal.<br>
|
|
"backendTimes": [ # Google internal<br>
|
|
{<br>
|
|
"serverMillis": "A String", # Google internal<br>
|
|
"hostName": "A String", # Google internal<br>
|
|
"name": "A String", # Google internal<br>
|
|
"elapsedMillis": "A String", # Google internal<br>
|
|
},<br>
|
|
],<br>
|
|
"elapsedMillis": "A String", # Google internal.<br>
|
|
},<br>
|
|
"spelling": { # Spelling.<br>
|
|
"suggestion": "A String", # Suggestion for spelling.<br>
|
|
},<br>
|
|
"previousLink": "A String", # Previous link of feed.<br>
|
|
"id": "tag:google.com,2010:shopping/products", # Id of feed.<br>
|
|
"categories": [ # List of categories.<br>
|
|
{<br>
|
|
"url": "A String", # URL of category.<br>
|
|
"shortName": "A String", # Short name of category.<br>
|
|
"parents": [ # Ids of the parents of the category.<br>
|
|
"A String",<br>
|
|
],<br>
|
|
"id": "A String", # Id of category.<br>
|
|
},<br>
|
|
],<br>
|
|
}</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table>
|
|
</body></html> |