class Google::Apis::ContentV2_1::Collection

The collection message.

Attributes

custom_label0[RW]

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]

custom_label1[RW]

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel1` @return [String]

custom_label2[RW]

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel2` @return [String]

custom_label3[RW]

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel3` @return [String]

custom_label4[RW]

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property `customLabel4` @return [String]

headline[RW]

Your collection's name. [headline attribute](support.google.com/ merchants/answer/9673580) Corresponds to the JSON property `headline` @return [Array<String>]

id[RW]

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]

language[RW]

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]

product_country[RW]

[product_country attribute](support.google.com/merchants/answer/ 9674155) Corresponds to the JSON property `productCountry` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 1923
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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