Class: Google::Apis::ContentV2_1::Collection
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Collection
- 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
-
#custom_label0 ⇒ String
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns.
-
#custom_label1 ⇒ String
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns.
-
#custom_label2 ⇒ String
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns.
-
#custom_label3 ⇒ String
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns.
-
#custom_label4 ⇒ String
Label that you assign to a collection to help organize bidding and reporting in Shopping campaigns.
-
#featured_product ⇒ Array<Google::Apis::ContentV2_1::CollectionFeaturedProduct>
This identifies one or more products associated with the collection.
-
#headline ⇒ Array<String>
Your collection's name.
-
#id ⇒ String
Required.
-
#image_link ⇒ Array<String>
The URL of a collection’s image.
-
#language ⇒ String
The language of a collection and the language of any featured products linked to the collection.
-
#link ⇒ String
A collection’s landing page.
-
#mobile_link ⇒ String
A collection’s mobile-optimized landing page when you have a different URL for mobile and desktop traffic.
-
#product_country ⇒ String
product_country attribute Corresponds to the JSON property
productCountry
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Collection
constructor
A new instance of Collection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Collection
Returns a new instance of Collection.
3084 3085 3086 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3084 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_label0 ⇒ String
Label that you assign to a collection to help organize bidding and reporting
in Shopping campaigns. Custom label
Corresponds to the JSON property customLabel0
3001 3002 3003 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3001 def custom_label0 @custom_label0 end |
#custom_label1 ⇒ String
Label that you assign to a collection to help organize bidding and reporting
in Shopping campaigns.
Corresponds to the JSON property customLabel1
3007 3008 3009 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3007 def custom_label1 @custom_label1 end |
#custom_label2 ⇒ String
Label that you assign to a collection to help organize bidding and reporting
in Shopping campaigns.
Corresponds to the JSON property customLabel2
3013 3014 3015 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3013 def custom_label2 @custom_label2 end |
#custom_label3 ⇒ String
Label that you assign to a collection to help organize bidding and reporting
in Shopping campaigns.
Corresponds to the JSON property customLabel3
3019 3020 3021 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3019 def custom_label3 @custom_label3 end |
#custom_label4 ⇒ String
Label that you assign to a collection to help organize bidding and reporting
in Shopping campaigns.
Corresponds to the JSON property customLabel4
3025 3026 3027 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3025 def custom_label4 @custom_label4 end |
#featured_product ⇒ Array<Google::Apis::ContentV2_1::CollectionFeaturedProduct>
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
3035 3036 3037 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3035 def featured_product @featured_product end |
#headline ⇒ Array<String>
Your collection's name. headline attribute
Corresponds to the JSON property headline
3041 3042 3043 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3041 def headline @headline end |
#id ⇒ 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
Corresponds to the JSON property id
3049 3050 3051 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3049 def id @id end |
#image_link ⇒ Array<String>
The URL of a collection’s image. image_link attribute
Corresponds to the JSON property imageLink
3055 3056 3057 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3055 def image_link @image_link end |
#language ⇒ String
The language of a collection and the language of any featured products linked
to the collection. language attribute
Corresponds to the JSON property language
3062 3063 3064 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3062 def language @language end |
#link ⇒ String
A collection’s landing page. URL directly linking to your collection's page on
your website. link attribute
Corresponds to the JSON property link
3069 3070 3071 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3069 def link @link end |
#mobile_link ⇒ String
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
3076 3077 3078 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3076 def mobile_link @mobile_link end |
#product_country ⇒ String
product_country attribute
Corresponds to the JSON property productCountry
3082 3083 3084 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3082 def product_country @product_country end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3089 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 |