Class: Google::Apis::ContentV2_1::Collection

Inherits:
Object
  • Object
show all
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

The collection message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Collection

Returns a new instance of Collection.



1784
1785
1786
# File 'lib/google/apis/content_v2_1/classes.rb', line 1784

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_label0String

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Custom label Corresponds to the JSON property customLabel0

Returns:

  • (String)


1701
1702
1703
# File 'lib/google/apis/content_v2_1/classes.rb', line 1701

def custom_label0
  @custom_label0
end

#custom_label1String

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property customLabel1

Returns:

  • (String)


1707
1708
1709
# File 'lib/google/apis/content_v2_1/classes.rb', line 1707

def custom_label1
  @custom_label1
end

#custom_label2String

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property customLabel2

Returns:

  • (String)


1713
1714
1715
# File 'lib/google/apis/content_v2_1/classes.rb', line 1713

def custom_label2
  @custom_label2
end

#custom_label3String

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property customLabel3

Returns:

  • (String)


1719
1720
1721
# File 'lib/google/apis/content_v2_1/classes.rb', line 1719

def custom_label3
  @custom_label3
end

#custom_label4String

Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns. Corresponds to the JSON property customLabel4

Returns:

  • (String)


1725
1726
1727
# File 'lib/google/apis/content_v2_1/classes.rb', line 1725

def custom_label4
  @custom_label4
end

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 Corresponds to the JSON property featuredProduct



1735
1736
1737
# File 'lib/google/apis/content_v2_1/classes.rb', line 1735

def featured_product
  @featured_product
end

#headlineArray<String>

Your collection's name. headline attribute Corresponds to the JSON property headline

Returns:

  • (Array<String>)


1741
1742
1743
# File 'lib/google/apis/content_v2_1/classes.rb', line 1741

def headline
  @headline
end

#idString

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 Corresponds to the JSON property id

Returns:

  • (String)


1749
1750
1751
# File 'lib/google/apis/content_v2_1/classes.rb', line 1749

def id
  @id
end

The URL of a collection’s image. image_link attribute Corresponds to the JSON property imageLink

Returns:

  • (Array<String>)


1755
1756
1757
# File 'lib/google/apis/content_v2_1/classes.rb', line 1755

def image_link
  @image_link
end

#languageString

The language of a collection and the language of any featured products linked to the collection. language attribute Corresponds to the JSON property language

Returns:

  • (String)


1762
1763
1764
# File 'lib/google/apis/content_v2_1/classes.rb', line 1762

def language
  @language
end

A collection’s landing page. URL directly linking to your collection's page on your website. link attribute Corresponds to the JSON property link

Returns:

  • (String)


1769
1770
1771
# File 'lib/google/apis/content_v2_1/classes.rb', line 1769

def link
  @link
end

A collection’s mobile-optimized landing page when you have a different URL for mobile and desktop traffic. mobile_link attribute Corresponds to the JSON property mobileLink

Returns:

  • (String)


1776
1777
1778
# File 'lib/google/apis/content_v2_1/classes.rb', line 1776

def mobile_link
  @mobile_link
end

#product_countryString

product_country attribute Corresponds to the JSON property productCountry

Returns:

  • (String)


1782
1783
1784
# File 'lib/google/apis/content_v2_1/classes.rb', line 1782

def product_country
  @product_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
# File 'lib/google/apis/content_v2_1/classes.rb', line 1789

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