class Google::Apis::ContentV2::Product
Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Product
data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.
Attributes
Additional URLs of images of the item. Corresponds to the JSON property `additionalImageLinks` @return [Array<String>]
Additional categories of the item (formatted as in products data specification) . Corresponds to the JSON property `additionalProductTypes` @return [Array<String>]
Should be set to true if the item is targeted towards adults. Corresponds to the JSON property `adult` @return [Boolean]
Should be set to true if the item is targeted towards adults. Corresponds to the JSON property `adult` @return [Boolean]
Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise. Corresponds to the JSON property `adwordsGrouping` @return [String]
Similar to adwords_grouping
, but only works on CPC. Corresponds to the JSON property `adwordsLabels` @return [Array<String>]
Allows advertisers to override the item URL when the product is shown within the context of Product
Ads. Corresponds to the JSON property `adwordsRedirect` @return [String]
Target age group of the item. Acceptable values are: - “`adult`” - “`infant`” - “`kids`” - “`newborn`” - “`toddler`” - “`youngAdult`” Corresponds to the JSON property `ageGroup` @return [String]
Deprecated. Do not use. Corresponds to the JSON property `aspects` @return [Array<Google::Apis::ContentV2::ProductAspect>]
Availability status of the item. Acceptable values are: - “`in stock`” - “`out of stock`” - “`preorder`” Corresponds to the JSON property `availability` @return [String]
The day a pre-ordered product becomes available for delivery, in ISO 8601 format. Corresponds to the JSON property `availabilityDate` @return [String]
Brand of the item. Corresponds to the JSON property `brand` @return [String]
URL for the canonical version of your item's landing page. Corresponds to the JSON property `canonicalLink` @return [String]
Required. The item's channel (online or local). Acceptable values are: - “` local`” - “`online`” Corresponds to the JSON property `channel` @return [String]
Color of the item. Corresponds to the JSON property `color` @return [String]
Condition or state of the item. Acceptable values are: - “`new`” - “` refurbished`” - “`used`” Corresponds to the JSON property `condition` @return [String]
Required. The two-letter ISO 639-1 language code for the item. Corresponds to the JSON property `contentLanguage` @return [String]
Cost of goods sold. Used for gross profit reporting. Corresponds to the JSON property `costOfGoodsSold` @return [Google::Apis::ContentV2::Price]
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). Corresponds to the JSON property `customAttributes` @return [Array<Google::Apis::ContentV2::CustomAttribute>]
A list of custom (merchant-provided) custom attribute groups. Corresponds to the JSON property `customGroups` @return [Array<Google::Apis::ContentV2::CustomGroup>]
Custom label 0 for custom grouping of items in a Shopping campaign. Corresponds to the JSON property `customLabel0` @return [String]
Custom label 1 for custom grouping of items in a Shopping campaign. Corresponds to the JSON property `customLabel1` @return [String]
Custom label 2 for custom grouping of items in a Shopping campaign. Corresponds to the JSON property `customLabel2` @return [String]
Custom label 3 for custom grouping of items in a Shopping campaign. Corresponds to the JSON property `customLabel3` @return [String]
Custom label 4 for custom grouping of items in a Shopping campaign. Corresponds to the JSON property `customLabel4` @return [String]
Description of the item. Corresponds to the JSON property `description` @return [String]
Specifies the intended destinations for the product. Corresponds to the JSON property `destinations` @return [Array<Google::Apis::ContentV2::ProductDestination>]
An identifier for an item for dynamic remarketing campaigns. Corresponds to the JSON property `displayAdsId` @return [String]
URL directly to your item's landing page for dynamic remarketing campaigns. Corresponds to the JSON property `displayAdsLink` @return [String]
Advertiser-specified recommendations. Corresponds to the JSON property `displayAdsSimilarIds` @return [Array<String>]
Title of an item for dynamic remarketing campaigns. Corresponds to the JSON property `displayAdsTitle` @return [String]
Offer margin for dynamic remarketing campaigns. Corresponds to the JSON property `displayAdsValue` @return [Float]
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`” Corresponds to the JSON property `energyEfficiencyClass` @return [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. Corresponds to the JSON property `expirationDate` @return [String]
Target gender of the item. Acceptable values are: - “`female`” - “`male`” - “` unisex`” Corresponds to the JSON property `gender` @return [String]
Google's category of the item (see [Google product taxonomy](support. google.com/merchants/answer/1705911)). 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. Corresponds to the JSON property `googleProductCategory` @return [String]
Global Trade Item Number (GTIN) of the item. Corresponds to the JSON property `gtin` @return [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. Corresponds to the JSON property `id` @return [String]
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. Corresponds to the JSON property `identifierExists` @return [Boolean]
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. Corresponds to the JSON property `identifierExists` @return [Boolean]
URL of an image of the item. Corresponds to the JSON property `imageLink` @return [String]
Number and amount of installments to pay for an item. Corresponds to the JSON property `installment` @return [Google::Apis::ContentV2::Installment]
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. Corresponds to the JSON property `isBundle` @return [Boolean]
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. Corresponds to the JSON property `isBundle` @return [Boolean]
Shared identifier for all variants of the same product. Corresponds to the JSON property `itemGroupId` @return [String]
Identifies what kind of resource this is. Value: the fixed string “`content# product`” Corresponds to the JSON property `kind` @return [String]
URL directly linking to your item's page on your website. Corresponds to the JSON property `link` @return [String]
Loyalty points that users receive after purchasing the item. Japan only. Corresponds to the JSON property `loyaltyPoints` @return [Google::Apis::ContentV2::LoyaltyPoints]
The material of which the item is made. Corresponds to the JSON property `material` @return [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`” Corresponds to the JSON property `maxEnergyEfficiencyClass` @return [String]
Maximal product handling time (in business days). Corresponds to the JSON property `maxHandlingTime` @return [Fixnum]
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`” Corresponds to the JSON property `minEnergyEfficiencyClass` @return [String]
Minimal product handling time (in business days). Corresponds to the JSON property `minHandlingTime` @return [Fixnum]
URL for the mobile-optimized version of your item's landing page. Corresponds to the JSON property `mobileLink` @return [String]
Manufacturer Part Number (MPN) of the item. Corresponds to the JSON property `mpn` @return [String]
The number of identical products in a merchant-defined multipack. Corresponds to the JSON property `multipack` @return [Fixnum]
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. Corresponds to the JSON property `offerId` @return [String]
Deprecated. Corresponds to the JSON property `onlineOnly` @return [Boolean]
Deprecated. Corresponds to the JSON property `onlineOnly` @return [Boolean]
The item's pattern (e.g. polka dots). Corresponds to the JSON property `pattern` @return [String]
Price
of the item. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]
Your category of the item (formatted as in products data specification). Corresponds to the JSON property `productType` @return [String]
The unique ID of a promotion. Corresponds to the JSON property `promotionIds` @return [Array<String>]
Advertised sale price of the item. Corresponds to the JSON property `salePrice` @return [Google::Apis::ContentV2::Price]
Date range during which the item is on sale (see products data specification ). Corresponds to the JSON property `salePriceEffectiveDate` @return [String]
The quantity of the product that is available for selling on Google
. Supported only for online products. Corresponds to the JSON property `sellOnGoogleQuantity` @return [Fixnum]
Shipping rules. Corresponds to the JSON property `shipping` @return [Array<Google::Apis::ContentV2::ProductShipping>]
Height of the item for shipping. Corresponds to the JSON property `shippingHeight` @return [Google::Apis::ContentV2::ProductShippingDimension]
The shipping label of the product, used to group product in account-level shipping rules. Corresponds to the JSON property `shippingLabel` @return [String]
Length of the item for shipping. Corresponds to the JSON property `shippingLength` @return [Google::Apis::ContentV2::ProductShippingDimension]
Weight
of the item for shipping. Corresponds to the JSON property `shippingWeight` @return [Google::Apis::ContentV2::ProductShippingWeight]
Width of the item for shipping. Corresponds to the JSON property `shippingWidth` @return [Google::Apis::ContentV2::ProductShippingDimension]
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`” Corresponds to the JSON property `sizeSystem` @return [String]
The cut of the item. Recommended for apparel items. Acceptable values are: - “` big and tall`” - “`maternity`” - “`oversize`” - “`petite`” - “`plus`” - “` regular`” Corresponds to the JSON property `sizeType` @return [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). Corresponds to the JSON property `sizes` @return [Array<String>]
The source of the offer, i.e., how the offer was created. Acceptable values are: - “`api`” - “`crawl`” - “`feed`” Corresponds to the JSON property `source` @return [String]
Required. The CLDR territory code for the item. Corresponds to the JSON property `targetCountry` @return [String]
Tax information. Corresponds to the JSON property `taxes` @return [Array<Google::Apis::ContentV2::ProductTax>]
Title of the item. Corresponds to the JSON property `title` @return [String]
The preference of the denominator of the unit price. Corresponds to the JSON property `unitPricingBaseMeasure` @return [Google::Apis::ContentV2::ProductUnitPricingBaseMeasure]
The measure and dimension of an item. Corresponds to the JSON property `unitPricingMeasure` @return [Google::Apis::ContentV2::ProductUnitPricingMeasure]
Deprecated. The read-only list of intended destinations which passed validation. Corresponds to the JSON property `validatedDestinations` @return [Array<String>]
Read-only warnings. Corresponds to the JSON property `warnings` @return [Array<Google::Apis::ContentV2::Error>]
Public Class Methods
# File lib/google/apis/content_v2/classes.rb, line 9254 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 9259 def update!(**args) @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links) @additional_product_types = args[:additional_product_types] if args.key?(:additional_product_types) @adult = args[:adult] if args.key?(:adult) @adwords_grouping = args[:adwords_grouping] if args.key?(:adwords_grouping) @adwords_labels = args[:adwords_labels] if args.key?(:adwords_labels) @adwords_redirect = args[:adwords_redirect] if args.key?(:adwords_redirect) @age_group = args[:age_group] if args.key?(:age_group) @aspects = args[:aspects] if args.key?(:aspects) @availability = args[:availability] if args.key?(:availability) @availability_date = args[:availability_date] if args.key?(:availability_date) @brand = args[:brand] if args.key?(:brand) @canonical_link = args[:canonical_link] if args.key?(:canonical_link) @channel = args[:channel] if args.key?(:channel) @color = args[:color] if args.key?(:color) @condition = args[:condition] if args.key?(:condition) @content_language = args[:content_language] if args.key?(:content_language) @cost_of_goods_sold = args[:cost_of_goods_sold] if args.key?(:cost_of_goods_sold) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @custom_groups = args[:custom_groups] if args.key?(:custom_groups) @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) @custom_label3 = args[:custom_label3] if args.key?(:custom_label3) @custom_label4 = args[:custom_label4] if args.key?(:custom_label4) @description = args[:description] if args.key?(:description) @destinations = args[:destinations] if args.key?(:destinations) @display_ads_id = args[:display_ads_id] if args.key?(:display_ads_id) @display_ads_link = args[:display_ads_link] if args.key?(:display_ads_link) @display_ads_similar_ids = args[:display_ads_similar_ids] if args.key?(:display_ads_similar_ids) @display_ads_title = args[:display_ads_title] if args.key?(:display_ads_title) @display_ads_value = args[:display_ads_value] if args.key?(:display_ads_value) @energy_efficiency_class = args[:energy_efficiency_class] if args.key?(:energy_efficiency_class) @expiration_date = args[:expiration_date] if args.key?(:expiration_date) @gender = args[:gender] if args.key?(:gender) @google_product_category = args[:google_product_category] if args.key?(:google_product_category) @gtin = args[:gtin] if args.key?(:gtin) @id = args[:id] if args.key?(:id) @identifier_exists = args[:identifier_exists] if args.key?(:identifier_exists) @image_link = args[:image_link] if args.key?(:image_link) @installment = args[:installment] if args.key?(:installment) @is_bundle = args[:is_bundle] if args.key?(:is_bundle) @item_group_id = args[:item_group_id] if args.key?(:item_group_id) @kind = args[:kind] if args.key?(:kind) @link = args[:link] if args.key?(:link) @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) @material = args[:material] if args.key?(:material) @max_energy_efficiency_class = args[:max_energy_efficiency_class] if args.key?(:max_energy_efficiency_class) @max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time) @min_energy_efficiency_class = args[:min_energy_efficiency_class] if args.key?(:min_energy_efficiency_class) @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time) @mobile_link = args[:mobile_link] if args.key?(:mobile_link) @mpn = args[:mpn] if args.key?(:mpn) @multipack = args[:multipack] if args.key?(:multipack) @offer_id = args[:offer_id] if args.key?(:offer_id) @online_only = args[:online_only] if args.key?(:online_only) @pattern = args[:pattern] if args.key?(:pattern) @price = args[:price] if args.key?(:price) @product_type = args[:product_type] if args.key?(:product_type) @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids) @sale_price = args[:sale_price] if args.key?(:sale_price) @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) @shipping = args[:shipping] if args.key?(:shipping) @shipping_height = args[:shipping_height] if args.key?(:shipping_height) @shipping_label = args[:shipping_label] if args.key?(:shipping_label) @shipping_length = args[:shipping_length] if args.key?(:shipping_length) @shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight) @shipping_width = args[:shipping_width] if args.key?(:shipping_width) @size_system = args[:size_system] if args.key?(:size_system) @size_type = args[:size_type] if args.key?(:size_type) @sizes = args[:sizes] if args.key?(:sizes) @source = args[:source] if args.key?(:source) @target_country = args[:target_country] if args.key?(:target_country) @taxes = args[:taxes] if args.key?(:taxes) @title = args[:title] if args.key?(:title) @unit_pricing_base_measure = args[:unit_pricing_base_measure] if args.key?(:unit_pricing_base_measure) @unit_pricing_measure = args[:unit_pricing_measure] if args.key?(:unit_pricing_measure) @validated_destinations = args[:validated_destinations] if args.key?(:validated_destinations) @warnings = args[:warnings] if args.key?(:warnings) end