Class: Google::Apis::ContentV2_1::Product
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Product
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#additional_image_links ⇒ Array<String>
Additional URLs of images of the item.
-
#additional_size_type ⇒ String
Additional cut of the item.
-
#ads_grouping ⇒ String
Used to group items in an arbitrary way.
-
#ads_labels ⇒ Array<String>
Similar to ads_grouping, but only works on CPC.
-
#ads_redirect ⇒ String
Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
-
#adult ⇒ Boolean
(also: #adult?)
Should be set to true if the item is targeted towards adults.
-
#age_group ⇒ String
Target age group of the item.
-
#availability ⇒ String
Availability status of the item.
-
#availability_date ⇒ String
The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
-
#brand ⇒ String
Brand of the item.
-
#canonical_link ⇒ String
URL for the canonical version of your item's landing page.
-
#channel ⇒ String
Required.
-
#color ⇒ String
Color of the item.
-
#condition ⇒ String
Condition or state of the item.
-
#content_language ⇒ String
Required.
-
#cost_of_goods_sold ⇒ Google::Apis::ContentV2_1::Price
Cost of goods sold.
-
#custom_attributes ⇒ Array<Google::Apis::ContentV2_1::CustomAttribute>
A list of custom (merchant-provided) attributes.
-
#custom_label0 ⇒ String
Custom label 0 for custom grouping of items in a Shopping campaign.
-
#custom_label1 ⇒ String
Custom label 1 for custom grouping of items in a Shopping campaign.
-
#custom_label2 ⇒ String
Custom label 2 for custom grouping of items in a Shopping campaign.
-
#custom_label3 ⇒ String
Custom label 3 for custom grouping of items in a Shopping campaign.
-
#custom_label4 ⇒ String
Custom label 4 for custom grouping of items in a Shopping campaign.
-
#description ⇒ String
Description of the item.
-
#display_ads_id ⇒ String
An identifier for an item for dynamic remarketing campaigns.
-
#display_ads_link ⇒ String
URL directly to your item's landing page for dynamic remarketing campaigns.
-
#display_ads_similar_ids ⇒ Array<String>
Advertiser-specified recommendations.
-
#display_ads_title ⇒ String
Title of an item for dynamic remarketing campaigns.
-
#display_ads_value ⇒ Float
Offer margin for dynamic remarketing campaigns.
-
#energy_efficiency_class ⇒ String
The energy efficiency class as defined in EU directive 2010/30/EU.
-
#excluded_destinations ⇒ Array<String>
The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
-
#expiration_date ⇒ String
Date on which the item should expire, as specified upon insertion, in ISO 8601 format.
-
#gender ⇒ String
Target gender of the item.
-
#google_product_category ⇒ String
Google's category of the item (see Google product taxonomy).
-
#gtin ⇒ String
Global Trade Item Number (GTIN) of the item.
-
#id ⇒ String
The REST ID of the product.
-
#identifier_exists ⇒ Boolean
(also: #identifier_exists?)
False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand.
-
#image_link ⇒ String
URL of an image of the item.
-
#included_destinations ⇒ Array<String>
The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center).
-
#installment ⇒ Google::Apis::ContentV2_1::Installment
Number and amount of installments to pay for an item.
-
#is_bundle ⇒ Boolean
(also: #is_bundle?)
Whether the item is a merchant-defined bundle.
-
#item_group_id ⇒ String
Shared identifier for all variants of the same product.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#link ⇒ String
URL directly linking to your item's page on your website.
-
#loyalty_points ⇒ Google::Apis::ContentV2_1::LoyaltyPoints
Loyalty points that users receive after purchasing the item.
-
#material ⇒ String
The material of which the item is made.
-
#max_energy_efficiency_class ⇒ String
The energy efficiency class as defined in EU directive 2010/30/EU.
-
#max_handling_time ⇒ Fixnum
Maximal product handling time (in business days).
-
#min_energy_efficiency_class ⇒ String
The energy efficiency class as defined in EU directive 2010/30/EU.
-
#min_handling_time ⇒ Fixnum
Minimal product handling time (in business days).
-
#mobile_link ⇒ String
URL for the mobile-optimized version of your item's landing page.
-
#mpn ⇒ String
Manufacturer Part Number (MPN) of the item.
-
#multipack ⇒ Fixnum
The number of identical products in a merchant-defined multipack.
-
#offer_id ⇒ String
Required.
-
#pattern ⇒ String
The item's pattern (e.g. polka dots).
-
#price ⇒ Google::Apis::ContentV2_1::Price
Price of the item.
-
#product_details ⇒ Array<Google::Apis::ContentV2_1::ProductProductDetail>
Technical specification or additional product details.
-
#product_highlights ⇒ Array<String>
Bullet points describing the most relevant highlights of a product.
-
#product_types ⇒ Array<String>
Categories of the item (formatted as in products data specification).
-
#promotion_ids ⇒ Array<String>
The unique ID of a promotion.
-
#sale_price ⇒ Google::Apis::ContentV2_1::Price
Advertised sale price of the item.
-
#sale_price_effective_date ⇒ String
Date range during which the item is on sale (see products data specification ).
-
#sell_on_google_quantity ⇒ Fixnum
The quantity of the product that is available for selling on Google.
-
#shipping ⇒ Array<Google::Apis::ContentV2_1::ProductShipping>
Shipping rules.
-
#shipping_height ⇒ Google::Apis::ContentV2_1::ProductShippingDimension
Height of the item for shipping.
-
#shipping_label ⇒ String
The shipping label of the product, used to group product in account-level shipping rules.
-
#shipping_length ⇒ Google::Apis::ContentV2_1::ProductShippingDimension
Length of the item for shipping.
-
#shipping_weight ⇒ Google::Apis::ContentV2_1::ProductShippingWeight
Weight of the item for shipping.
-
#shipping_width ⇒ Google::Apis::ContentV2_1::ProductShippingDimension
Width of the item for shipping.
-
#shopping_ads_excluded_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) to exclude the offer from Shopping Ads destination.
-
#size_system ⇒ String
System in which the size is specified.
-
#size_type ⇒ String
The cut of the item.
-
#sizes ⇒ Array<String>
Size of the item.
-
#source ⇒ String
The source of the offer, i.e., how the offer was created.
-
#subscription_cost ⇒ Google::Apis::ContentV2_1::ProductSubscriptionCost
Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract.
-
#target_country ⇒ String
Required.
-
#tax_category ⇒ String
The tax category of the product, used to configure detailed tax nexus in account-level tax settings.
-
#taxes ⇒ Array<Google::Apis::ContentV2_1::ProductTax>
Tax information.
-
#title ⇒ String
Title of the item.
-
#transit_time_label ⇒ String
The transit time label of the product, used to group product in account-level transit time tables.
-
#unit_pricing_base_measure ⇒ Google::Apis::ContentV2_1::ProductUnitPricingBaseMeasure
The preference of the denominator of the unit price.
-
#unit_pricing_measure ⇒ Google::Apis::ContentV2_1::ProductUnitPricingMeasure
The measure and dimension of an item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Product
constructor
A new instance of Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Product
Returns a new instance of Product.
10151 10152 10153 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10151 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_image_links ⇒ Array<String>
Additional URLs of images of the item.
Corresponds to the JSON property additionalImageLinks
9709 9710 9711 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9709 def additional_image_links @additional_image_links end |
#additional_size_type ⇒ String
Additional cut of the item. Used together with size_type to represent combined
size types for apparel items.
Corresponds to the JSON property additionalSizeType
9715 9716 9717 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9715 def additional_size_type @additional_size_type end |
#ads_grouping ⇒ String
Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
Corresponds to the JSON property adsGrouping
9720 9721 9722 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9720 def ads_grouping @ads_grouping end |
#ads_labels ⇒ Array<String>
Similar to ads_grouping, but only works on CPC.
Corresponds to the JSON property adsLabels
9725 9726 9727 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9725 def ads_labels @ads_labels end |
#ads_redirect ⇒ String
Allows advertisers to override the item URL when the product is shown within
the context of Product Ads.
Corresponds to the JSON property adsRedirect
9731 9732 9733 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9731 def ads_redirect @ads_redirect end |
#adult ⇒ Boolean Also known as: adult?
Should be set to true if the item is targeted towards adults.
Corresponds to the JSON property adult
9736 9737 9738 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9736 def adult @adult end |
#age_group ⇒ String
Target age group of the item.
Corresponds to the JSON property ageGroup
9742 9743 9744 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9742 def age_group @age_group end |
#availability ⇒ String
Availability status of the item.
Corresponds to the JSON property availability
9747 9748 9749 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9747 def availability @availability end |
#availability_date ⇒ String
The day a pre-ordered product becomes available for delivery, in ISO 8601
format.
Corresponds to the JSON property availabilityDate
9753 9754 9755 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9753 def availability_date @availability_date end |
#brand ⇒ String
Brand of the item.
Corresponds to the JSON property brand
9758 9759 9760 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9758 def brand @brand end |
#canonical_link ⇒ String
URL for the canonical version of your item's landing page.
Corresponds to the JSON property canonicalLink
9763 9764 9765 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9763 def canonical_link @canonical_link end |
#channel ⇒ String
Required. The item's channel (online or local). Acceptable values are: - "
local" - "online"
Corresponds to the JSON property channel
9769 9770 9771 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9769 def channel @channel end |
#color ⇒ String
Color of the item.
Corresponds to the JSON property color
9774 9775 9776 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9774 def color @color end |
#condition ⇒ String
Condition or state of the item.
Corresponds to the JSON property condition
9779 9780 9781 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9779 def condition @condition end |
#content_language ⇒ String
Required. The two-letter ISO 639-1 language code for the item.
Corresponds to the JSON property contentLanguage
9784 9785 9786 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9784 def content_language @content_language end |
#cost_of_goods_sold ⇒ Google::Apis::ContentV2_1::Price
Cost of goods sold. Used for gross profit reporting.
Corresponds to the JSON property costOfGoodsSold
9789 9790 9791 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9789 def cost_of_goods_sold @cost_of_goods_sold end |
#custom_attributes ⇒ Array<Google::Apis::ContentV2_1::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).
Corresponds to the JSON propertycustomAttributes`
9798 9799 9800 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9798 def custom_attributes @custom_attributes end |
#custom_label0 ⇒ String
Custom label 0 for custom grouping of items in a Shopping campaign.
Corresponds to the JSON property customLabel0
9803 9804 9805 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9803 def custom_label0 @custom_label0 end |
#custom_label1 ⇒ String
Custom label 1 for custom grouping of items in a Shopping campaign.
Corresponds to the JSON property customLabel1
9808 9809 9810 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9808 def custom_label1 @custom_label1 end |
#custom_label2 ⇒ String
Custom label 2 for custom grouping of items in a Shopping campaign.
Corresponds to the JSON property customLabel2
9813 9814 9815 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9813 def custom_label2 @custom_label2 end |
#custom_label3 ⇒ String
Custom label 3 for custom grouping of items in a Shopping campaign.
Corresponds to the JSON property customLabel3
9818 9819 9820 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9818 def custom_label3 @custom_label3 end |
#custom_label4 ⇒ String
Custom label 4 for custom grouping of items in a Shopping campaign.
Corresponds to the JSON property customLabel4
9823 9824 9825 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9823 def custom_label4 @custom_label4 end |
#description ⇒ String
Description of the item.
Corresponds to the JSON property description
9828 9829 9830 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9828 def description @description end |
#display_ads_id ⇒ String
An identifier for an item for dynamic remarketing campaigns.
Corresponds to the JSON property displayAdsId
9833 9834 9835 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9833 def display_ads_id @display_ads_id end |
#display_ads_link ⇒ String
URL directly to your item's landing page for dynamic remarketing campaigns.
Corresponds to the JSON property displayAdsLink
9838 9839 9840 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9838 def display_ads_link @display_ads_link end |
#display_ads_similar_ids ⇒ Array<String>
Advertiser-specified recommendations.
Corresponds to the JSON property displayAdsSimilarIds
9843 9844 9845 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9843 def display_ads_similar_ids @display_ads_similar_ids end |
#display_ads_title ⇒ String
Title of an item for dynamic remarketing campaigns.
Corresponds to the JSON property displayAdsTitle
9848 9849 9850 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9848 def display_ads_title @display_ads_title end |
#display_ads_value ⇒ Float
Offer margin for dynamic remarketing campaigns.
Corresponds to the JSON property displayAdsValue
9853 9854 9855 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9853 def display_ads_value @display_ads_value end |
#energy_efficiency_class ⇒ String
The energy efficiency class as defined in EU directive 2010/30/EU.
Corresponds to the JSON property energyEfficiencyClass
9858 9859 9860 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9858 def energy_efficiency_class @energy_efficiency_class end |
#excluded_destinations ⇒ Array<String>
The list of destinations to exclude for this target (corresponds to unchecked
check boxes in Merchant Center).
Corresponds to the JSON property excludedDestinations
9864 9865 9866 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9864 def excluded_destinations @excluded_destinations end |
#expiration_date ⇒ 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
9872 9873 9874 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9872 def expiration_date @expiration_date end |
#gender ⇒ String
Target gender of the item.
Corresponds to the JSON property gender
9877 9878 9879 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9877 def gender @gender end |
#google_product_category ⇒ 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.
Corresponds to the JSON property googleProductCategory
9885 9886 9887 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9885 def google_product_category @google_product_category end |
#gtin ⇒ String
Global Trade Item Number (GTIN) of the item.
Corresponds to the JSON property gtin
9890 9891 9892 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9890 def gtin @gtin end |
#id ⇒ 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
9897 9898 9899 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9897 def id @id end |
#identifier_exists ⇒ Boolean Also known as: identifier_exists?
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
9904 9905 9906 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9904 def identifier_exists @identifier_exists end |
#image_link ⇒ String
URL of an image of the item.
Corresponds to the JSON property imageLink
9910 9911 9912 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9910 def image_link @image_link end |
#included_destinations ⇒ Array<String>
The list of destinations to include for this target (corresponds to checked
check boxes in Merchant Center). Default destinations are always included
unless provided in excludedDestinations.
Corresponds to the JSON property includedDestinations
9917 9918 9919 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9917 def included_destinations @included_destinations end |
#installment ⇒ Google::Apis::ContentV2_1::Installment
Number and amount of installments to pay for an item.
Corresponds to the JSON property installment
9922 9923 9924 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9922 def installment @installment end |
#is_bundle ⇒ Boolean Also known as: is_bundle?
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
9928 9929 9930 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9928 def is_bundle @is_bundle end |
#item_group_id ⇒ String
Shared identifier for all variants of the same product.
Corresponds to the JSON property itemGroupId
9934 9935 9936 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9934 def item_group_id @item_group_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
product"
Corresponds to the JSON property kind
9940 9941 9942 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9940 def kind @kind end |
#link ⇒ String
URL directly linking to your item's page on your website.
Corresponds to the JSON property link
9945 9946 9947 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9945 def link @link end |
#loyalty_points ⇒ Google::Apis::ContentV2_1::LoyaltyPoints
Loyalty points that users receive after purchasing the item. Japan only.
Corresponds to the JSON property loyaltyPoints
9950 9951 9952 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9950 def loyalty_points @loyalty_points end |
#material ⇒ String
The material of which the item is made.
Corresponds to the JSON property material
9955 9956 9957 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9955 def material @material end |
#max_energy_efficiency_class ⇒ String
The energy efficiency class as defined in EU directive 2010/30/EU.
Corresponds to the JSON property maxEnergyEfficiencyClass
9960 9961 9962 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9960 def max_energy_efficiency_class @max_energy_efficiency_class end |
#max_handling_time ⇒ Fixnum
Maximal product handling time (in business days).
Corresponds to the JSON property maxHandlingTime
9965 9966 9967 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9965 def max_handling_time @max_handling_time end |
#min_energy_efficiency_class ⇒ String
The energy efficiency class as defined in EU directive 2010/30/EU.
Corresponds to the JSON property minEnergyEfficiencyClass
9970 9971 9972 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9970 def min_energy_efficiency_class @min_energy_efficiency_class end |
#min_handling_time ⇒ Fixnum
Minimal product handling time (in business days).
Corresponds to the JSON property minHandlingTime
9975 9976 9977 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9975 def min_handling_time @min_handling_time end |
#mobile_link ⇒ String
URL for the mobile-optimized version of your item's landing page.
Corresponds to the JSON property mobileLink
9980 9981 9982 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9980 def mobile_link @mobile_link end |
#mpn ⇒ String
Manufacturer Part Number (MPN) of the item.
Corresponds to the JSON property mpn
9985 9986 9987 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9985 def mpn @mpn end |
#multipack ⇒ Fixnum
The number of identical products in a merchant-defined multipack.
Corresponds to the JSON property multipack
9990 9991 9992 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9990 def multipack @multipack end |
#offer_id ⇒ 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.
Corresponds to the JSON property offerId
9999 10000 10001 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9999 def offer_id @offer_id end |
#pattern ⇒ String
The item's pattern (e.g. polka dots).
Corresponds to the JSON property pattern
10004 10005 10006 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10004 def pattern @pattern end |
#price ⇒ Google::Apis::ContentV2_1::Price
Price of the item.
Corresponds to the JSON property price
10009 10010 10011 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10009 def price @price end |
#product_details ⇒ Array<Google::Apis::ContentV2_1::ProductProductDetail>
Technical specification or additional product details.
Corresponds to the JSON property productDetails
10014 10015 10016 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10014 def product_details @product_details end |
#product_highlights ⇒ Array<String>
Bullet points describing the most relevant highlights of a product.
Corresponds to the JSON property productHighlights
10019 10020 10021 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10019 def product_highlights @product_highlights end |
#product_types ⇒ Array<String>
Categories of the item (formatted as in products data specification).
Corresponds to the JSON property productTypes
10024 10025 10026 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10024 def product_types @product_types end |
#promotion_ids ⇒ Array<String>
The unique ID of a promotion.
Corresponds to the JSON property promotionIds
10029 10030 10031 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10029 def promotion_ids @promotion_ids end |
#sale_price ⇒ Google::Apis::ContentV2_1::Price
Advertised sale price of the item.
Corresponds to the JSON property salePrice
10034 10035 10036 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10034 def sale_price @sale_price end |
#sale_price_effective_date ⇒ String
Date range during which the item is on sale (see products data specification ).
Corresponds to the JSON property salePriceEffectiveDate
10039 10040 10041 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10039 def sale_price_effective_date @sale_price_effective_date end |
#sell_on_google_quantity ⇒ Fixnum
The quantity of the product that is available for selling on Google. Supported
only for online products.
Corresponds to the JSON property sellOnGoogleQuantity
10045 10046 10047 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10045 def sell_on_google_quantity @sell_on_google_quantity end |
#shipping ⇒ Array<Google::Apis::ContentV2_1::ProductShipping>
Shipping rules.
Corresponds to the JSON property shipping
10050 10051 10052 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10050 def shipping @shipping end |
#shipping_height ⇒ Google::Apis::ContentV2_1::ProductShippingDimension
Height of the item for shipping.
Corresponds to the JSON property shippingHeight
10055 10056 10057 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10055 def shipping_height @shipping_height end |
#shipping_label ⇒ String
The shipping label of the product, used to group product in account-level
shipping rules.
Corresponds to the JSON property shippingLabel
10061 10062 10063 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10061 def shipping_label @shipping_label end |
#shipping_length ⇒ Google::Apis::ContentV2_1::ProductShippingDimension
Length of the item for shipping.
Corresponds to the JSON property shippingLength
10066 10067 10068 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10066 def shipping_length @shipping_length end |
#shipping_weight ⇒ Google::Apis::ContentV2_1::ProductShippingWeight
Weight of the item for shipping.
Corresponds to the JSON property shippingWeight
10071 10072 10073 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10071 def shipping_weight @shipping_weight end |
#shipping_width ⇒ Google::Apis::ContentV2_1::ProductShippingDimension
Width of the item for shipping.
Corresponds to the JSON property shippingWidth
10076 10077 10078 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10076 def shipping_width @shipping_width end |
#shopping_ads_excluded_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) to exclude the offer from Shopping
Ads destination. Countries from this list are removed from countries
configured in MC feed settings.
Corresponds to the JSON property shoppingAdsExcludedCountries
10083 10084 10085 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10083 def shopping_ads_excluded_countries @shopping_ads_excluded_countries end |
#size_system ⇒ String
System in which the size is specified. Recommended for apparel items.
Corresponds to the JSON property sizeSystem
10088 10089 10090 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10088 def size_system @size_system end |
#size_type ⇒ String
The cut of the item. Recommended for apparel items.
Corresponds to the JSON property sizeType
10093 10094 10095 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10093 def size_type @size_type end |
#sizes ⇒ Array<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
10100 10101 10102 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10100 def sizes @sizes end |
#source ⇒ 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
10106 10107 10108 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10106 def source @source end |
#subscription_cost ⇒ Google::Apis::ContentV2_1::ProductSubscriptionCost
Number of periods (months or years) and amount of payment per period for an
item with an associated subscription contract.
Corresponds to the JSON property subscriptionCost
10112 10113 10114 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10112 def subscription_cost @subscription_cost end |
#target_country ⇒ String
Required. The CLDR territory code for the item.
Corresponds to the JSON property targetCountry
10117 10118 10119 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10117 def target_country @target_country end |
#tax_category ⇒ String
The tax category of the product, used to configure detailed tax nexus in
account-level tax settings.
Corresponds to the JSON property taxCategory
10123 10124 10125 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10123 def tax_category @tax_category end |
#taxes ⇒ Array<Google::Apis::ContentV2_1::ProductTax>
Tax information.
Corresponds to the JSON property taxes
10128 10129 10130 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10128 def taxes @taxes end |
#title ⇒ String
Title of the item.
Corresponds to the JSON property title
10133 10134 10135 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10133 def title @title end |
#transit_time_label ⇒ String
The transit time label of the product, used to group product in account-level
transit time tables.
Corresponds to the JSON property transitTimeLabel
10139 10140 10141 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10139 def transit_time_label @transit_time_label end |
#unit_pricing_base_measure ⇒ Google::Apis::ContentV2_1::ProductUnitPricingBaseMeasure
The preference of the denominator of the unit price.
Corresponds to the JSON property unitPricingBaseMeasure
10144 10145 10146 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10144 def unit_pricing_base_measure @unit_pricing_base_measure end |
#unit_pricing_measure ⇒ Google::Apis::ContentV2_1::ProductUnitPricingMeasure
The measure and dimension of an item.
Corresponds to the JSON property unitPricingMeasure
10149 10150 10151 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10149 def unit_pricing_measure @unit_pricing_measure end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10156 def update!(**args) @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links) @additional_size_type = args[:additional_size_type] if args.key?(:additional_size_type) @ads_grouping = args[:ads_grouping] if args.key?(:ads_grouping) @ads_labels = args[:ads_labels] if args.key?(:ads_labels) @ads_redirect = args[:ads_redirect] if args.key?(:ads_redirect) @adult = args[:adult] if args.key?(:adult) @age_group = args[:age_group] if args.key?(:age_group) @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_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) @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) @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations) @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) @included_destinations = args[:included_destinations] if args.key?(:included_destinations) @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) @pattern = args[:pattern] if args.key?(:pattern) @price = args[:price] if args.key?(:price) @product_details = args[:product_details] if args.key?(:product_details) @product_highlights = args[:product_highlights] if args.key?(:product_highlights) @product_types = args[:product_types] if args.key?(:product_types) @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) @shopping_ads_excluded_countries = args[:shopping_ads_excluded_countries] if args.key?(:shopping_ads_excluded_countries) @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) @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost) @target_country = args[:target_country] if args.key?(:target_country) @tax_category = args[:tax_category] if args.key?(:tax_category) @taxes = args[:taxes] if args.key?(:taxes) @title = args[:title] if args.key?(:title) @transit_time_label = args[:transit_time_label] if args.key?(:transit_time_label) @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) end |