class Google::Apis::ContentV2_1::Collection
The collection message.
Attributes
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. [Custom label](support.google.com/merchants/ answer/9674217) Corresponds to the JSON property `customLabel0` @return [String]
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel1` @return [String]
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel2` @return [String]
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel3` @return [String]
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel4` @return [String]
This identifies one or more products associated with the collection. Used as a lookup to the corresponding product ID in your product feeds. Provide a maximum of 100 featuredProduct (for collections). Provide up to 10 featuredProduct (for Shoppable Images only) with ID and X and Y coordinates. [ featured_product
attribute](support.google.com/merchants/answer/ 9703736) Corresponds to the JSON property `featuredProduct` @return [Array<Google::Apis::ContentV2_1::CollectionFeaturedProduct>]
Your collection's name. [headline attribute](support.google.com/ merchants/answer/9673580) Corresponds to the JSON property `headline` @return [Array<String>]
Required. The REST ID of the collection. Content API methods that operate on collections take this as their collectionId parameter. The REST ID for a collection is of the form collectionId. [id attribute](support.google. com/merchants/answer/9649290) Corresponds to the JSON property `id` @return [String]
The URL of a collection’s image. [image_link attribute](support.google. com/merchants/answer/9703236) Corresponds to the JSON property `imageLink` @return [Array<String>]
The language of a collection and the language of any featured products linked to the collection. [language attribute](support.google.com/merchants/ answer/9673781) Corresponds to the JSON property `language` @return [String]
A collection’s landing page. URL directly linking to your collection's page on your website. [link attribute](support.google.com/merchants/answer/ 9673983) Corresponds to the JSON property `link` @return [String]
A collection’s mobile-optimized landing page when you have a different URL for mobile and desktop traffic. [mobile_link attribute](support.google.com/ merchants/answer/9646123) Corresponds to the JSON property `mobileLink` @return [String]
[product_country attribute](support.google.com/merchants/answer/ 9674155) Corresponds to the JSON property `productCountry` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 1923 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 1928 def update!(**args) @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) @featured_product = args[:featured_product] if args.key?(:featured_product) @headline = args[:headline] if args.key?(:headline) @id = args[:id] if args.key?(:id) @image_link = args[:image_link] if args.key?(:image_link) @language = args[:language] if args.key?(:language) @link = args[:link] if args.key?(:link) @mobile_link = args[:mobile_link] if args.key?(:mobile_link) @product_country = args[:product_country] if args.key?(:product_country) end