Struct google_content2::api::Product [−][src]
Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- custombatch products (none)
- delete products (none)
- get products (response)
- insert products (request|response)
- list products (none)
Fields
additional_image_links: Option<Vec<String>>Additional URLs of images of the item.
additional_product_types: Option<Vec<String>>Additional categories of the item (formatted as in products data specification).
adult: Option<bool>Should be set to true if the item is targeted towards adults.
adwords_grouping: Option<String>Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
adwords_labels: Option<Vec<String>>Similar to adwords_grouping, but only works on CPC.
adwords_redirect: Option<String>Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
age_group: Option<String>Target age group of the item. Acceptable values are: - “adult” - “infant” - “kids” - “newborn” - “toddler” - “youngAdult”
aspects: Option<Vec<ProductAspect>>Deprecated. Do not use.
availability: Option<String>Availability status of the item. Acceptable values are: - “in stock” - “out of stock” - “preorder”
availability_date: Option<String>The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
brand: Option<String>Brand of the item.
canonical_link: Option<String>URL for the canonical version of your item’s landing page.
channel: Option<String>Required. The item’s channel (online or local). Acceptable values are: - “local” - “online”
color: Option<String>Color of the item.
condition: Option<String>Condition or state of the item. Acceptable values are: - “new” - “refurbished” - “used”
content_language: Option<String>Required. The two-letter ISO 639-1 language code for the item.
cost_of_goods_sold: Option<Price>Cost of goods sold. Used for gross profit reporting.
custom_attributes: Option<Vec<CustomAttribute>>A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google (formerly known as Shopping Actions).
custom_groups: Option<Vec<CustomGroup>>A list of custom (merchant-provided) custom attribute groups.
custom_label0: Option<String>Custom label 0 for custom grouping of items in a Shopping campaign.
custom_label1: Option<String>Custom label 1 for custom grouping of items in a Shopping campaign.
custom_label2: Option<String>Custom label 2 for custom grouping of items in a Shopping campaign.
custom_label3: Option<String>Custom label 3 for custom grouping of items in a Shopping campaign.
custom_label4: Option<String>Custom label 4 for custom grouping of items in a Shopping campaign.
description: Option<String>Description of the item.
destinations: Option<Vec<ProductDestination>>Specifies the intended destinations for the product.
display_ads_id: Option<String>An identifier for an item for dynamic remarketing campaigns.
display_ads_link: Option<String>URL directly to your item’s landing page for dynamic remarketing campaigns.
display_ads_similar_ids: Option<Vec<String>>Advertiser-specified recommendations.
display_ads_title: Option<String>Title of an item for dynamic remarketing campaigns.
display_ads_value: Option<f64>Offer margin for dynamic remarketing campaigns.
energy_efficiency_class: Option<String>The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - “A” - “A+” - “A++” - “A+++” - “B” - “C” - “D” - “E” - “F” - “G”
expiration_date: Option<String>Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
gender: Option<String>Target gender of the item. Acceptable values are: - “female” - “male” - “unisex”
google_product_category: Option<String>Google’s category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.
gtin: Option<String>Global Trade Item Number (GTIN) of the item.
id: Option<String>The REST ID of the product. Content API methods that operate on products take this as their productId parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId.
identifier_exists: Option<bool>False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
image_link: Option<String>URL of an image of the item.
installment: Option<Installment>Number and amount of installments to pay for an item.
is_bundle: Option<bool>Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
item_group_id: Option<String>Shared identifier for all variants of the same product.
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string “content#product”
link: Option<String>URL directly linking to your item’s page on your website.
loyalty_points: Option<LoyaltyPoints>Loyalty points that users receive after purchasing the item. Japan only.
material: Option<String>The material of which the item is made.
max_energy_efficiency_class: Option<String>The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - “A” - “A+” - “A++” - “A+++” - “B” - “C” - “D” - “E” - “F” - “G”
max_handling_time: Option<String>Maximal product handling time (in business days).
min_energy_efficiency_class: Option<String>The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - “A” - “A+” - “A++” - “A+++” - “B” - “C” - “D” - “E” - “F” - “G”
min_handling_time: Option<String>Minimal product handling time (in business days).
mobile_link: Option<String>URL for the mobile-optimized version of your item’s landing page.
mpn: Option<String>Manufacturer Part Number (MPN) of the item.
multipack: Option<String>The number of identical products in a merchant-defined multipack.
offer_id: Option<String>Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details. Note: Content API methods that operate on products take the REST ID of the product, not this identifier.
online_only: Option<bool>Deprecated.
pattern: Option<String>The item’s pattern (e.g. polka dots).
price: Option<Price>Price of the item.
product_type: Option<String>Your category of the item (formatted as in products data specification).
promotion_ids: Option<Vec<String>>The unique ID of a promotion.
sale_price: Option<Price>Advertised sale price of the item.
sale_price_effective_date: Option<String>Date range during which the item is on sale (see products data specification ).
sell_on_google_quantity: Option<String>The quantity of the product that is available for selling on Google. Supported only for online products.
shipping: Option<Vec<ProductShipping>>Shipping rules.
shipping_height: Option<ProductShippingDimension>Height of the item for shipping.
shipping_label: Option<String>The shipping label of the product, used to group product in account-level shipping rules.
shipping_length: Option<ProductShippingDimension>Length of the item for shipping.
shipping_weight: Option<ProductShippingWeight>Weight of the item for shipping.
shipping_width: Option<ProductShippingDimension>Width of the item for shipping.
size_system: Option<String>System in which the size is specified. Recommended for apparel items. Acceptable values are: - “AU” - “BR” - “CN” - “DE” - “EU” - “FR” - “IT” - “JP” - “MEX” - “UK” - “US”
size_type: Option<String>The cut of the item. Recommended for apparel items. Acceptable values are: - “big and tall” - “maternity” - “oversize” - “petite” - “plus” - “regular”
sizes: Option<Vec<String>>Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see size definition).
source: Option<String>The source of the offer, i.e., how the offer was created. Acceptable values are: - “api” - “crawl” - “feed”
target_country: Option<String>Required. The CLDR territory code for the item.
taxes: Option<Vec<ProductTax>>Tax information.
title: Option<String>Title of the item.
unit_pricing_base_measure: Option<ProductUnitPricingBaseMeasure>The preference of the denominator of the unit price.
unit_pricing_measure: Option<ProductUnitPricingMeasure>The measure and dimension of an item.
validated_destinations: Option<Vec<String>>Deprecated. The read-only list of intended destinations which passed validation.
warnings: Option<Vec<Error>>Read-only warnings.
Trait Implementations
impl Clone for Product[src]
impl Debug for Product[src]
impl Default for Product[src]
impl<'de> Deserialize<'de> for Product[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl RequestValue for Product[src]
impl Resource for Product[src]
impl ResponseResult for Product[src]
impl Serialize for Product[src]
Auto Trait Implementations
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnwindSafe for Product
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,