Documentation ¶
Overview ¶
Package shopping provides access to the Search API For Shopping.
See https://developers.google.com/shopping-search/v1/getting_started
Usage example:
import "code.google.com/p/google-api-go-client/shopping/v1" ... shoppingService, err := shopping.New(oauthHttpClient)
Index ¶
- Constants
- type Product
- type Products
- type ProductsFacets
- type ProductsFacetsBuckets
- type ProductsGetCall
- func (c *ProductsGetCall) AttributeFilter(attributeFilter string) *ProductsGetCall
- func (c *ProductsGetCall) CategoriesEnabled(categoriesEnabled bool) *ProductsGetCall
- func (c *ProductsGetCall) CategoriesInclude(categoriesInclude string) *ProductsGetCall
- func (c *ProductsGetCall) CategoriesUseGcsConfig(categoriesUseGcsConfig bool) *ProductsGetCall
- func (c *ProductsGetCall) Do() (*Product, error)
- func (c *ProductsGetCall) Location(location string) *ProductsGetCall
- func (c *ProductsGetCall) RecommendationsEnabled(recommendationsEnabled bool) *ProductsGetCall
- func (c *ProductsGetCall) RecommendationsInclude(recommendationsInclude string) *ProductsGetCall
- func (c *ProductsGetCall) RecommendationsUseGcsConfig(recommendationsUseGcsConfig bool) *ProductsGetCall
- func (c *ProductsGetCall) Taxonomy(taxonomy string) *ProductsGetCall
- func (c *ProductsGetCall) Thumbnails(thumbnails string) *ProductsGetCall
- type ProductsListCall
- func (c *ProductsListCall) AttributeFilter(attributeFilter string) *ProductsListCall
- func (c *ProductsListCall) Availability(availability string) *ProductsListCall
- func (c *ProductsListCall) BoostBy(boostBy string) *ProductsListCall
- func (c *ProductsListCall) CategoriesEnabled(categoriesEnabled bool) *ProductsListCall
- func (c *ProductsListCall) CategoriesInclude(categoriesInclude string) *ProductsListCall
- func (c *ProductsListCall) CategoriesUseGcsConfig(categoriesUseGcsConfig bool) *ProductsListCall
- func (c *ProductsListCall) CategoryRecommendationsCategory(categoryRecommendationsCategory string) *ProductsListCall
- func (c *ProductsListCall) CategoryRecommendationsEnabled(categoryRecommendationsEnabled bool) *ProductsListCall
- func (c *ProductsListCall) CategoryRecommendationsInclude(categoryRecommendationsInclude string) *ProductsListCall
- func (c *ProductsListCall) CategoryRecommendationsUseGcsConfig(categoryRecommendationsUseGcsConfig bool) *ProductsListCall
- func (c *ProductsListCall) Channels(channels string) *ProductsListCall
- func (c *ProductsListCall) ClickTracking(clickTracking bool) *ProductsListCall
- func (c *ProductsListCall) Country(country string) *ProductsListCall
- func (c *ProductsListCall) CrowdBy(crowdBy string) *ProductsListCall
- func (c *ProductsListCall) Currency(currency string) *ProductsListCall
- func (c *ProductsListCall) Do() (*Products, error)
- func (c *ProductsListCall) ExtrasEnabled(extrasEnabled bool) *ProductsListCall
- func (c *ProductsListCall) ExtrasInfo(extrasInfo string) *ProductsListCall
- func (c *ProductsListCall) FacetsDiscover(facetsDiscover string) *ProductsListCall
- func (c *ProductsListCall) FacetsEnabled(facetsEnabled bool) *ProductsListCall
- func (c *ProductsListCall) FacetsInclude(facetsInclude string) *ProductsListCall
- func (c *ProductsListCall) FacetsIncludeEmptyBuckets(facetsIncludeEmptyBuckets bool) *ProductsListCall
- func (c *ProductsListCall) FacetsUseGcsConfig(facetsUseGcsConfig bool) *ProductsListCall
- func (c *ProductsListCall) Language(language string) *ProductsListCall
- func (c *ProductsListCall) Location(location string) *ProductsListCall
- func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
- func (c *ProductsListCall) MaxVariants(maxVariants int64) *ProductsListCall
- func (c *ProductsListCall) PromotionsEnabled(promotionsEnabled bool) *ProductsListCall
- func (c *ProductsListCall) PromotionsUseGcsConfig(promotionsUseGcsConfig bool) *ProductsListCall
- func (c *ProductsListCall) Q(q string) *ProductsListCall
- func (c *ProductsListCall) RankBy(rankBy string) *ProductsListCall
- func (c *ProductsListCall) RedirectsEnabled(redirectsEnabled bool) *ProductsListCall
- func (c *ProductsListCall) RedirectsUseGcsConfig(redirectsUseGcsConfig bool) *ProductsListCall
- func (c *ProductsListCall) RestrictBy(restrictBy string) *ProductsListCall
- func (c *ProductsListCall) SpellingEnabled(spellingEnabled bool) *ProductsListCall
- func (c *ProductsListCall) SpellingUseGcsConfig(spellingUseGcsConfig bool) *ProductsListCall
- func (c *ProductsListCall) StartIndex(startIndex int64) *ProductsListCall
- func (c *ProductsListCall) Taxonomy(taxonomy string) *ProductsListCall
- func (c *ProductsListCall) Thumbnails(thumbnails string) *ProductsListCall
- func (c *ProductsListCall) UseCase(useCase string) *ProductsListCall
- type ProductsPromotions
- type ProductsPromotionsCustomFields
- type ProductsService
- type ProductsSpelling
- type ProductsStores
- type Service
- type ShoppingModelCategoryJsonV1
- type ShoppingModelDebugJsonV1
- type ShoppingModelDebugJsonV1BackendTimes
- type ShoppingModelExtrasJsonV1
- type ShoppingModelExtrasJsonV1FacetRules
- type ShoppingModelExtrasJsonV1RankingRules
- type ShoppingModelProductJsonV1
- type ShoppingModelProductJsonV1Attributes
- type ShoppingModelProductJsonV1Author
- type ShoppingModelProductJsonV1Images
- type ShoppingModelProductJsonV1ImagesThumbnails
- type ShoppingModelProductJsonV1Internal16
- type ShoppingModelProductJsonV1Inventories
- type ShoppingModelProductJsonV1Variants
- type ShoppingModelRecommendationsJsonV1
- type ShoppingModelRecommendationsJsonV1RecommendationList
Constants ¶
const (
// View your product data
ShoppingapiScope = "https://www.googleapis.com/auth/shoppingapi"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct { // Categories: List of categories for product. Categories []*ShoppingModelCategoryJsonV1 `json:"categories,omitempty"` // Debug: Google internal. Debug *ShoppingModelDebugJsonV1 `json:"debug,omitempty"` // Id: Id of product. Id string `json:"id,omitempty"` // Kind: The kind of item, always shopping#product. Kind string `json:"kind,omitempty"` // Product: Product. Product *ShoppingModelProductJsonV1 `json:"product,omitempty"` // Recommendations: Recommendations for product. Recommendations []*ShoppingModelRecommendationsJsonV1 `json:"recommendations,omitempty"` // RequestId: Unique identifier for this request. RequestId string `json:"requestId,omitempty"` // SelfLink: Self link of product when generated for a lookup request. // Self link of product when generated for a search request. SelfLink string `json:"selfLink,omitempty"` }
type Products ¶
type Products struct { // Categories: List of categories. Categories []*ShoppingModelCategoryJsonV1 `json:"categories,omitempty"` // CategoryRecommendations: Recommendations for category. CategoryRecommendations []*ShoppingModelRecommendationsJsonV1 `json:"categoryRecommendations,omitempty"` // CurrentItemCount: Current item count. CurrentItemCount int64 `json:"currentItemCount,omitempty"` // Debug: Google internal. Debug *ShoppingModelDebugJsonV1 `json:"debug,omitempty"` // Etag: Etag of feed. Etag string `json:"etag,omitempty"` // Extras: List of extras. Extras *ShoppingModelExtrasJsonV1 `json:"extras,omitempty"` // Facets: List of facets. Facets []*ProductsFacets `json:"facets,omitempty"` // Id: Id of feed. Id string `json:"id,omitempty"` // Items: List of returned products. Items []*Product `json:"items,omitempty"` // ItemsPerPage: Number of items per page of results. ItemsPerPage int64 `json:"itemsPerPage,omitempty"` // Kind: The fixed string "shopping#products". The kind of feed // returned. Kind string `json:"kind,omitempty"` // NextLink: Next link of feed. NextLink string `json:"nextLink,omitempty"` // PreviousLink: Previous link of feed. PreviousLink string `json:"previousLink,omitempty"` // Promotions: List of promotions. Promotions []*ProductsPromotions `json:"promotions,omitempty"` // Redirects: Redirects. Redirects []string `json:"redirects,omitempty"` // RequestId: Unique identifier for this request. RequestId string `json:"requestId,omitempty"` // SelfLink: Self link of feed. SelfLink string `json:"selfLink,omitempty"` // Spelling: Spelling. Spelling *ProductsSpelling `json:"spelling,omitempty"` // StartIndex: 1-based index of the first item in the search results. StartIndex int64 `json:"startIndex,omitempty"` // Stores: List of returned stores. Stores []*ProductsStores `json:"stores,omitempty"` // TotalItems: Total number of search results. TotalItems int64 `json:"totalItems,omitempty"` }
type ProductsFacets ¶
type ProductsFacets struct { // Buckets: List of Buckets within facet. Buckets []*ProductsFacetsBuckets `json:"buckets,omitempty"` // Count: Number of products matching the query that have a value for // the facet's property or attribute. Count int64 `json:"count,omitempty"` // DisplayName: Display name of facet. DisplayName string `json:"displayName,omitempty"` // Name: Name of the facet's attribute (omitted for property facets). Name string `json:"name,omitempty"` // Property: Property of facet (omitted for attribute facets). Property string `json:"property,omitempty"` // Type: Type of facet's attribute (omitted for property facets, one of: // text, bool, int, float). Type string `json:"type,omitempty"` // Unit: Unit of the facet's property or attribute (omitted if the // facet's property or attribute has no unit). Unit string `json:"unit,omitempty"` }
type ProductsFacetsBuckets ¶
type ProductsFacetsBuckets struct { // Count: Number of products matching the query that have a value for // the facet's property or attribute that matches the bucket. Count int64 `json:"count,omitempty"` // Max: Upper bound of the bucket (omitted for value buckets or if the // range has no upper bound). Max interface{} `json:"max,omitempty"` // MaxExclusive: Whether the upper bound of the bucket is exclusive // (omitted for value buckets or if the range has no upper bound). MaxExclusive bool `json:"maxExclusive,omitempty"` // Min: Lower bound of the bucket (omitted for value buckets or if the // range has no lower bound). Min interface{} `json:"min,omitempty"` // MinExclusive: Whether the lower bound of the bucket is exclusive // (omitted for value buckets or if the range has no lower bound). MinExclusive bool `json:"minExclusive,omitempty"` // Value: Value of the bucket (omitted for range buckets). Value interface{} `json:"value,omitempty"` }
type ProductsGetCall ¶
type ProductsGetCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetCall) AttributeFilter ¶
func (c *ProductsGetCall) AttributeFilter(attributeFilter string) *ProductsGetCall
AttributeFilter sets the optional parameter "attributeFilter": Comma separated list of attributes to return
func (*ProductsGetCall) CategoriesEnabled ¶
func (c *ProductsGetCall) CategoriesEnabled(categoriesEnabled bool) *ProductsGetCall
CategoriesEnabled sets the optional parameter "categories.enabled": Whether to return category information
func (*ProductsGetCall) CategoriesInclude ¶
func (c *ProductsGetCall) CategoriesInclude(categoriesInclude string) *ProductsGetCall
CategoriesInclude sets the optional parameter "categories.include": Category specification
func (*ProductsGetCall) CategoriesUseGcsConfig ¶
func (c *ProductsGetCall) CategoriesUseGcsConfig(categoriesUseGcsConfig bool) *ProductsGetCall
CategoriesUseGcsConfig sets the optional parameter "categories.useGcsConfig": This parameter is currently ignored
func (*ProductsGetCall) Do ¶
func (c *ProductsGetCall) Do() (*Product, error)
func (*ProductsGetCall) Location ¶
func (c *ProductsGetCall) Location(location string) *ProductsGetCall
Location sets the optional parameter "location": Location used to determine tax and shipping
func (*ProductsGetCall) RecommendationsEnabled ¶
func (c *ProductsGetCall) RecommendationsEnabled(recommendationsEnabled bool) *ProductsGetCall
RecommendationsEnabled sets the optional parameter "recommendations.enabled": Whether to return recommendation information
func (*ProductsGetCall) RecommendationsInclude ¶
func (c *ProductsGetCall) RecommendationsInclude(recommendationsInclude string) *ProductsGetCall
RecommendationsInclude sets the optional parameter "recommendations.include": Recommendation specification
func (*ProductsGetCall) RecommendationsUseGcsConfig ¶
func (c *ProductsGetCall) RecommendationsUseGcsConfig(recommendationsUseGcsConfig bool) *ProductsGetCall
RecommendationsUseGcsConfig sets the optional parameter "recommendations.useGcsConfig": This parameter is currently ignored
func (*ProductsGetCall) Taxonomy ¶
func (c *ProductsGetCall) Taxonomy(taxonomy string) *ProductsGetCall
Taxonomy sets the optional parameter "taxonomy": Merchant taxonomy
func (*ProductsGetCall) Thumbnails ¶
func (c *ProductsGetCall) Thumbnails(thumbnails string) *ProductsGetCall
Thumbnails sets the optional parameter "thumbnails": Thumbnail specification
type ProductsListCall ¶
type ProductsListCall struct {
// contains filtered or unexported fields
}
func (*ProductsListCall) AttributeFilter ¶
func (c *ProductsListCall) AttributeFilter(attributeFilter string) *ProductsListCall
AttributeFilter sets the optional parameter "attributeFilter": Comma separated list of attributes to return
func (*ProductsListCall) Availability ¶
func (c *ProductsListCall) Availability(availability string) *ProductsListCall
Availability sets the optional parameter "availability": Comma separated list of availabilities (outOfStock, limited, inStock, backOrder, preOrder, onDisplayToOrder) to return
func (*ProductsListCall) BoostBy ¶
func (c *ProductsListCall) BoostBy(boostBy string) *ProductsListCall
BoostBy sets the optional parameter "boostBy": Boosting specification
func (*ProductsListCall) CategoriesEnabled ¶
func (c *ProductsListCall) CategoriesEnabled(categoriesEnabled bool) *ProductsListCall
CategoriesEnabled sets the optional parameter "categories.enabled": Whether to return category information
func (*ProductsListCall) CategoriesInclude ¶
func (c *ProductsListCall) CategoriesInclude(categoriesInclude string) *ProductsListCall
CategoriesInclude sets the optional parameter "categories.include": Category specification
func (*ProductsListCall) CategoriesUseGcsConfig ¶
func (c *ProductsListCall) CategoriesUseGcsConfig(categoriesUseGcsConfig bool) *ProductsListCall
CategoriesUseGcsConfig sets the optional parameter "categories.useGcsConfig": This parameter is currently ignored
func (*ProductsListCall) CategoryRecommendationsCategory ¶
func (c *ProductsListCall) CategoryRecommendationsCategory(categoryRecommendationsCategory string) *ProductsListCall
CategoryRecommendationsCategory sets the optional parameter "categoryRecommendations.category": Category for which to retrieve recommendations
func (*ProductsListCall) CategoryRecommendationsEnabled ¶
func (c *ProductsListCall) CategoryRecommendationsEnabled(categoryRecommendationsEnabled bool) *ProductsListCall
CategoryRecommendationsEnabled sets the optional parameter "categoryRecommendations.enabled": Whether to return category recommendation information
func (*ProductsListCall) CategoryRecommendationsInclude ¶
func (c *ProductsListCall) CategoryRecommendationsInclude(categoryRecommendationsInclude string) *ProductsListCall
CategoryRecommendationsInclude sets the optional parameter "categoryRecommendations.include": Category recommendation specification
func (*ProductsListCall) CategoryRecommendationsUseGcsConfig ¶
func (c *ProductsListCall) CategoryRecommendationsUseGcsConfig(categoryRecommendationsUseGcsConfig bool) *ProductsListCall
CategoryRecommendationsUseGcsConfig sets the optional parameter "categoryRecommendations.useGcsConfig": This parameter is currently ignored
func (*ProductsListCall) Channels ¶
func (c *ProductsListCall) Channels(channels string) *ProductsListCall
Channels sets the optional parameter "channels": Channels specification
func (*ProductsListCall) ClickTracking ¶
func (c *ProductsListCall) ClickTracking(clickTracking bool) *ProductsListCall
ClickTracking sets the optional parameter "clickTracking": Whether to add a click tracking parameter to offer URLs
func (*ProductsListCall) Country ¶
func (c *ProductsListCall) Country(country string) *ProductsListCall
Country sets the optional parameter "country": Country restriction (ISO 3166)
func (*ProductsListCall) CrowdBy ¶
func (c *ProductsListCall) CrowdBy(crowdBy string) *ProductsListCall
CrowdBy sets the optional parameter "crowdBy": Crowding specification
func (*ProductsListCall) Currency ¶
func (c *ProductsListCall) Currency(currency string) *ProductsListCall
Currency sets the optional parameter "currency": Currency restriction (ISO 4217)
func (*ProductsListCall) Do ¶
func (c *ProductsListCall) Do() (*Products, error)
func (*ProductsListCall) ExtrasEnabled ¶
func (c *ProductsListCall) ExtrasEnabled(extrasEnabled bool) *ProductsListCall
ExtrasEnabled sets the optional parameter "extras.enabled": Whether to return extra information.
func (*ProductsListCall) ExtrasInfo ¶
func (c *ProductsListCall) ExtrasInfo(extrasInfo string) *ProductsListCall
ExtrasInfo sets the optional parameter "extras.info": What extra information to return.
func (*ProductsListCall) FacetsDiscover ¶
func (c *ProductsListCall) FacetsDiscover(facetsDiscover string) *ProductsListCall
FacetsDiscover sets the optional parameter "facets.discover": Facets to discover
func (*ProductsListCall) FacetsEnabled ¶
func (c *ProductsListCall) FacetsEnabled(facetsEnabled bool) *ProductsListCall
FacetsEnabled sets the optional parameter "facets.enabled": Whether to return facet information
func (*ProductsListCall) FacetsInclude ¶
func (c *ProductsListCall) FacetsInclude(facetsInclude string) *ProductsListCall
FacetsInclude sets the optional parameter "facets.include": Facets to include (applies when useGcsConfig == false)
func (*ProductsListCall) FacetsIncludeEmptyBuckets ¶
func (c *ProductsListCall) FacetsIncludeEmptyBuckets(facetsIncludeEmptyBuckets bool) *ProductsListCall
FacetsIncludeEmptyBuckets sets the optional parameter "facets.includeEmptyBuckets": Return empty facet buckets.
func (*ProductsListCall) FacetsUseGcsConfig ¶
func (c *ProductsListCall) FacetsUseGcsConfig(facetsUseGcsConfig bool) *ProductsListCall
FacetsUseGcsConfig sets the optional parameter "facets.useGcsConfig": Whether to return facet information as configured in the GCS account
func (*ProductsListCall) Language ¶
func (c *ProductsListCall) Language(language string) *ProductsListCall
Language sets the optional parameter "language": Language restriction (BCP 47)
func (*ProductsListCall) Location ¶
func (c *ProductsListCall) Location(location string) *ProductsListCall
Location sets the optional parameter "location": Location used to determine tax and shipping
func (*ProductsListCall) MaxResults ¶
func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return
func (*ProductsListCall) MaxVariants ¶
func (c *ProductsListCall) MaxVariants(maxVariants int64) *ProductsListCall
MaxVariants sets the optional parameter "maxVariants": Maximum number of variant results to return per result
func (*ProductsListCall) PromotionsEnabled ¶
func (c *ProductsListCall) PromotionsEnabled(promotionsEnabled bool) *ProductsListCall
PromotionsEnabled sets the optional parameter "promotions.enabled": Whether to return promotion information
func (*ProductsListCall) PromotionsUseGcsConfig ¶
func (c *ProductsListCall) PromotionsUseGcsConfig(promotionsUseGcsConfig bool) *ProductsListCall
PromotionsUseGcsConfig sets the optional parameter "promotions.useGcsConfig": Whether to return promotion information as configured in the GCS account
func (*ProductsListCall) Q ¶
func (c *ProductsListCall) Q(q string) *ProductsListCall
Q sets the optional parameter "q": Search query
func (*ProductsListCall) RankBy ¶
func (c *ProductsListCall) RankBy(rankBy string) *ProductsListCall
RankBy sets the optional parameter "rankBy": Ranking specification
func (*ProductsListCall) RedirectsEnabled ¶
func (c *ProductsListCall) RedirectsEnabled(redirectsEnabled bool) *ProductsListCall
RedirectsEnabled sets the optional parameter "redirects.enabled": Whether to return redirect information
func (*ProductsListCall) RedirectsUseGcsConfig ¶
func (c *ProductsListCall) RedirectsUseGcsConfig(redirectsUseGcsConfig bool) *ProductsListCall
RedirectsUseGcsConfig sets the optional parameter "redirects.useGcsConfig": Whether to return redirect information as configured in the GCS account
func (*ProductsListCall) RestrictBy ¶
func (c *ProductsListCall) RestrictBy(restrictBy string) *ProductsListCall
RestrictBy sets the optional parameter "restrictBy": Restriction specification
func (*ProductsListCall) SpellingEnabled ¶
func (c *ProductsListCall) SpellingEnabled(spellingEnabled bool) *ProductsListCall
SpellingEnabled sets the optional parameter "spelling.enabled": Whether to return spelling suggestions
func (*ProductsListCall) SpellingUseGcsConfig ¶
func (c *ProductsListCall) SpellingUseGcsConfig(spellingUseGcsConfig bool) *ProductsListCall
SpellingUseGcsConfig sets the optional parameter "spelling.useGcsConfig": This parameter is currently ignored
func (*ProductsListCall) StartIndex ¶
func (c *ProductsListCall) StartIndex(startIndex int64) *ProductsListCall
StartIndex sets the optional parameter "startIndex": Index (1-based) of first product to return
func (*ProductsListCall) Taxonomy ¶
func (c *ProductsListCall) Taxonomy(taxonomy string) *ProductsListCall
Taxonomy sets the optional parameter "taxonomy": Taxonomy name
func (*ProductsListCall) Thumbnails ¶
func (c *ProductsListCall) Thumbnails(thumbnails string) *ProductsListCall
Thumbnails sets the optional parameter "thumbnails": Image thumbnails specification
func (*ProductsListCall) UseCase ¶
func (c *ProductsListCall) UseCase(useCase string) *ProductsListCall
UseCase sets the optional parameter "useCase": One of CommerceSearchUseCase, ShoppingApiUseCase
type ProductsPromotions ¶
type ProductsPromotions struct { // CustomFields: List of custom fields of promotion. CustomFields []*ProductsPromotionsCustomFields `json:"customFields,omitempty"` // CustomHtml: Custom HTML of promotion (omitted if type is not custom). CustomHtml string `json:"customHtml,omitempty"` // Description: Description of promotion (omitted if type is not // standard). Description string `json:"description,omitempty"` // DestLink: Link to promotion (omitted if type is not standard). DestLink string `json:"destLink,omitempty"` // ImageLink: Link to promotion image (omitted if type is not standard). ImageLink string `json:"imageLink,omitempty"` // Name: Name of promotion (omitted if type is not standard). Name string `json:"name,omitempty"` // Product: Product of promotion (omitted if type is not product). Product *ShoppingModelProductJsonV1 `json:"product,omitempty"` // Type: Type of promotion (one of: standard, product, custom). Type string `json:"type,omitempty"` }
type ProductsService ¶
type ProductsService struct {
// contains filtered or unexported fields
}
func NewProductsService ¶
func NewProductsService(s *Service) *ProductsService
func (*ProductsService) Get ¶
func (r *ProductsService) Get(source string, accountId int64, productIdType string, productId string) *ProductsGetCall
Get: Returns a single product
func (*ProductsService) List ¶
func (r *ProductsService) List(source string) *ProductsListCall
List: Returns a list of products and content modules
type ProductsSpelling ¶
type ProductsSpelling struct { // Suggestion: Suggestion for spelling. Suggestion string `json:"suggestion,omitempty"` }
type ProductsStores ¶
type ProductsStores struct { // Address: Address of store. Address string `json:"address,omitempty"` // Location: Location of store. Location string `json:"location,omitempty"` // Name: Name of merchant. Name string `json:"name,omitempty"` // StoreCode: Merchant-supplied store code. StoreCode string `json:"storeCode,omitempty"` // StoreId: Id of store. StoreId string `json:"storeId,omitempty"` // StoreName: Name of store. StoreName string `json:"storeName,omitempty"` // Telephone: Telephone number of store. Telephone string `json:"telephone,omitempty"` }
type Service ¶
type Service struct { Products *ProductsService // contains filtered or unexported fields }
type ShoppingModelCategoryJsonV1 ¶
type ShoppingModelCategoryJsonV1 struct { // Id: Id of category. Id string `json:"id,omitempty"` // Parents: Ids of the parents of the category. Parents []string `json:"parents,omitempty"` // ShortName: Short name of category. ShortName string `json:"shortName,omitempty"` // Url: URL of category. Url string `json:"url,omitempty"` }
type ShoppingModelDebugJsonV1 ¶
type ShoppingModelDebugJsonV1 struct { // BackendTimes: Google internal BackendTimes []*ShoppingModelDebugJsonV1BackendTimes `json:"backendTimes,omitempty"` // ElapsedMillis: Google internal. ElapsedMillis int64 `json:"elapsedMillis,omitempty,string"` // FacetsRequest: Google internal. FacetsRequest string `json:"facetsRequest,omitempty"` // FacetsResponse: Google internal. FacetsResponse string `json:"facetsResponse,omitempty"` // RdcResponse: Google internal. RdcResponse string `json:"rdcResponse,omitempty"` // RecommendedItemsRequest: Google internal. RecommendedItemsRequest string `json:"recommendedItemsRequest,omitempty"` // RecommendedItemsResponse: Google internal. RecommendedItemsResponse string `json:"recommendedItemsResponse,omitempty"` // SearchRequest: Google internal. SearchRequest string `json:"searchRequest,omitempty"` // SearchResponse: Google internal. SearchResponse string `json:"searchResponse,omitempty"` }
type ShoppingModelDebugJsonV1BackendTimes ¶
type ShoppingModelDebugJsonV1BackendTimes struct { // ElapsedMillis: Google internal ElapsedMillis int64 `json:"elapsedMillis,omitempty,string"` // HostName: Google internal HostName string `json:"hostName,omitempty"` // Name: Google internal Name string `json:"name,omitempty"` // ServerMillis: Google internal ServerMillis int64 `json:"serverMillis,omitempty,string"` }
type ShoppingModelExtrasJsonV1 ¶
type ShoppingModelExtrasJsonV1 struct { FacetRules []*ShoppingModelExtrasJsonV1FacetRules `json:"facetRules,omitempty"` // RankingRules: Names of boost (ranking) rules applicable to this // search. RankingRules []*ShoppingModelExtrasJsonV1RankingRules `json:"rankingRules,omitempty"` }
type ShoppingModelExtrasJsonV1FacetRules ¶
type ShoppingModelExtrasJsonV1FacetRules struct {
Name string `json:"name,omitempty"`
}
type ShoppingModelExtrasJsonV1RankingRules ¶
type ShoppingModelExtrasJsonV1RankingRules struct {
Name string `json:"name,omitempty"`
}
type ShoppingModelProductJsonV1 ¶
type ShoppingModelProductJsonV1 struct { // Attributes: Attributes of product (available only with a cx source). Attributes []*ShoppingModelProductJsonV1Attributes `json:"attributes,omitempty"` // Author: Author of product. Author *ShoppingModelProductJsonV1Author `json:"author,omitempty"` // Brand: Brand of product. Brand string `json:"brand,omitempty"` // Categories: Categories of product according to the selected taxonomy, // omitted if no taxonomy is selected. Categories []string `json:"categories,omitempty"` // Condition: Condition of product (one of: new, refurbished, used). Condition string `json:"condition,omitempty"` // Country: ISO 3166 code of target country of product. Country string `json:"country,omitempty"` // CreationTime: RFC 3339 formatted creation time and date of product. CreationTime string `json:"creationTime,omitempty"` // Description: Description of product. Description string `json:"description,omitempty"` // GoogleId: Google id of product. GoogleId uint64 `json:"googleId,omitempty,string"` // Gtin: The first GTIN of the product. Deprecated in favor of "gtins". Gtin string `json:"gtin,omitempty"` // Gtins: List of all the product's GTINs (in GTIN-14 format). Gtins []string `json:"gtins,omitempty"` // Images: Images of product. Images []*ShoppingModelProductJsonV1Images `json:"images,omitempty"` // Internal16: Google Internal. Attribute names are deliberately vague. Internal16 *ShoppingModelProductJsonV1Internal16 `json:"internal16,omitempty"` // Inventories: Inventories of product. Inventories []*ShoppingModelProductJsonV1Inventories `json:"inventories,omitempty"` // Language: BCP 47 language tag of language of product. Language string `json:"language,omitempty"` // Link: Link to product. Link string `json:"link,omitempty"` // ModificationTime: RFC 3339 formatted modification time and date of // product. ModificationTime string `json:"modificationTime,omitempty"` // Mpns: List of all the product's MPNs. Mpns []string `json:"mpns,omitempty"` // ProvidedId: Merchant-provided id of product (available only with a cx // source). ProvidedId string `json:"providedId,omitempty"` // QueryMatched: Whether this product matched the user query. Only set // for the variant offers (if any) attached to a product offer. QueryMatched bool `json:"queryMatched,omitempty"` // Score: Google Internal Score float64 `json:"score,omitempty"` // Title: Title of product. Title string `json:"title,omitempty"` // TotalMatchingVariants: The number of variant offers returned that // matched the query. TotalMatchingVariants int64 `json:"totalMatchingVariants,omitempty"` // Variants: A list of variant offers associated with this product. Variants []*ShoppingModelProductJsonV1Variants `json:"variants,omitempty"` }
type ShoppingModelProductJsonV1Attributes ¶
type ShoppingModelProductJsonV1Attributes struct { // DisplayName: Display Name of prodct attribute. DisplayName string `json:"displayName,omitempty"` // Name: Name of product attribute. Name string `json:"name,omitempty"` // Type: Type of product attribute (one of: text, bool, int, float, // dateRange, url). Type string `json:"type,omitempty"` // Unit: Unit of product attribute. Unit string `json:"unit,omitempty"` // Value: Value of product attribute. Value interface{} `json:"value,omitempty"` }
type ShoppingModelProductJsonV1Images ¶
type ShoppingModelProductJsonV1Images struct { // Link: Link to product image. Link string `json:"link,omitempty"` Status string `json:"status,omitempty"` // Thumbnails: Thumbnails of product image. Thumbnails []*ShoppingModelProductJsonV1ImagesThumbnails `json:"thumbnails,omitempty"` }
type ShoppingModelProductJsonV1ImagesThumbnails ¶
type ShoppingModelProductJsonV1ImagesThumbnails struct { // Content: Content of thumbnail (only available for the first thumbnail // of the top results if SAYT is enabled). Content string `json:"content,omitempty"` // Height: Height of thumbnail (omitted if not specified in the // request). Height int64 `json:"height,omitempty"` // Link: Link to thumbnail. Link string `json:"link,omitempty"` // Width: Width of thumbnail (omitted if not specified in the request). Width int64 `json:"width,omitempty"` }
type ShoppingModelProductJsonV1Inventories ¶
type ShoppingModelProductJsonV1Inventories struct { // Availability: Availability of product inventory. Availability string `json:"availability,omitempty"` // Channel: Channel of product inventory (one of: online, local). Channel string `json:"channel,omitempty"` // Currency: Currency of product inventory (an ISO 4217 alphabetic // code). Currency string `json:"currency,omitempty"` // Distance: Distance of product inventory. Distance float64 `json:"distance,omitempty"` // DistanceUnit: Distance unit of product inventory. DistanceUnit string `json:"distanceUnit,omitempty"` // InstallmentMonths: Number of months for installment price. InstallmentMonths int64 `json:"installmentMonths,omitempty"` // InstallmentPrice: Installment price of product inventory. InstallmentPrice float64 `json:"installmentPrice,omitempty"` // OriginalPrice: Original price of product inventory. Only returned for // products that are on sale. OriginalPrice float64 `json:"originalPrice,omitempty"` // Price: Price of product inventory. Price float64 `json:"price,omitempty"` // SaleEndDate: Sale end date. SaleEndDate string `json:"saleEndDate,omitempty"` // SalePrice: Sale price of product inventory. SalePrice float64 `json:"salePrice,omitempty"` // SaleStartDate: Sale start date. SaleStartDate string `json:"saleStartDate,omitempty"` // Shipping: Shipping cost of product inventory. Shipping float64 `json:"shipping,omitempty"` // StoreId: Store ID of product inventory. StoreId string `json:"storeId,omitempty"` // Tax: Tax of product inventory. Tax float64 `json:"tax,omitempty"` }
type ShoppingModelProductJsonV1Variants ¶
type ShoppingModelProductJsonV1Variants struct { // Variant: The detailed offer data for a particular variant offer. Variant *ShoppingModelProductJsonV1 `json:"variant,omitempty"` }
type ShoppingModelRecommendationsJsonV1 ¶
type ShoppingModelRecommendationsJsonV1 struct { // RecommendationList: List of recommendations. RecommendationList []*ShoppingModelRecommendationsJsonV1RecommendationList `json:"recommendationList,omitempty"` // Type: Type of recommendation list (for offer-based recommendations, // one of: all, purchaseToPurchase, visitToVisit, visitToPurchase, // relatedItems, visuallySimilarItems; for category-based // recommendations, one of: all, categoryMostVisited, // categoryBestSeller). Type string `json:"type,omitempty"` }
type ShoppingModelRecommendationsJsonV1RecommendationList ¶
type ShoppingModelRecommendationsJsonV1RecommendationList struct { // Product: Recommended product. Product *ShoppingModelProductJsonV1 `json:"product,omitempty"` }