class Google::Apis::ContentV2::Product
Product data.
Attributes
Additional URLs of images of the item. Corresponds to the JSON property `additionalImageLinks` @return [Array<String>]
Set to true if the item is targeted towards adults. Corresponds to the JSON property `adult` @return [Boolean]
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. Corresponds to the JSON property `ageGroup` @return [String]
Specifies the intended aspects for the product. Corresponds to the JSON property `aspects` @return [Array<Google::Apis::ContentV2::ProductAspect>]
Availability status of the item. 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]
The item's channel (online or local). 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. Corresponds to the JSON property `condition` @return [String]
The two-letter ISO 639-1 language code for the item. Corresponds to the JSON property `contentLanguage` @return [String]
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”, “type”: “text”, “value”: “regular” `). This is useful for submitting attributes not explicitly exposed by the API. Corresponds to the JSON property `customAttributes` @return [Array<Google::Apis::ContentV2::ProductCustomAttribute>]
A list of custom (merchant-provided) custom attribute groups. Corresponds to the JSON property `customGroups` @return [Array<Google::Apis::ContentV2::ProductCustomGroup>]
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. 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. Corresponds to the JSON property `gender` @return [String]
Google's category of the item (see Google product taxonomy). 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. 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. Brazil only. 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]
Link to a mobile-optimized version of the 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 [String]
An identifier of the item. Corresponds to the JSON property `offerId` @return [String]
Whether an item is available for purchase only online. Corresponds to the JSON property `onlineOnly` @return [Boolean]
Whether an item is available for purchase only online. 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 product feeds 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 product feed specifications). Corresponds to the JSON property `salePriceEffectiveDate` @return [String]
The quantity of the product that is reserved for sell-on-google ads. Corresponds to the JSON property `sellOnGoogleQuantity` @return [String]
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. Corresponds to the JSON property `sizeSystem` @return [String]
The cut of the item. Recommended for apparel items. Corresponds to the JSON property `sizeType` @return [String]
Size of the item. Corresponds to the JSON property `sizes` @return [Array<String>]
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]
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 generated/google/apis/content_v2/classes.rb, line 4922 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 4927 def update!(**args) @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links) @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) @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) @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) @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) @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