Class: Google::Apis::DfareportingV4::CartData
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::CartData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Contains additional information about cart data. This field may only be used when calling batchinsert; it is not supported by batchupdate.
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::DfareportingV4::CartDataItem>
Data of the items purchased.
-
#merchant_feed_label ⇒ String
The feed labels associated with the feed where your items are uploaded.
-
#merchant_feed_language ⇒ String
The language associated with the feed where your items are uploaded.
-
#merchant_id ⇒ Fixnum
The Merchant Center ID where the items are uploaded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CartData
constructor
A new instance of CartData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CartData
Returns a new instance of CartData.
2117 2118 2119 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::DfareportingV4::CartDataItem>
Data of the items purchased.
Corresponds to the JSON property items
2096 2097 2098 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2096 def items @items end |
#merchant_feed_label ⇒ String
The feed labels associated with the feed where your items are uploaded. For
more information, please refer to https://support.google.com/merchants/
answer/12453549. This is a required field.
Corresponds to the JSON property merchantFeedLabel
2103 2104 2105 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2103 def merchant_feed_label @merchant_feed_label end |
#merchant_feed_language ⇒ String
The language associated with the feed where your items are uploaded. Use ISO
639-1 language codes. This field is needed only when item IDs are not unique
across multiple Merchant Center feeds.
Corresponds to the JSON property merchantFeedLanguage
2110 2111 2112 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2110 def merchant_feed_language @merchant_feed_language end |
#merchant_id ⇒ Fixnum
The Merchant Center ID where the items are uploaded. This is a required field.
Corresponds to the JSON property merchantId
2115 2116 2117 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2115 def merchant_id @merchant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2122 2123 2124 2125 2126 2127 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2122 def update!(**args) @items = args[:items] if args.key?(:items) @merchant_feed_label = args[:merchant_feed_label] if args.key?(:merchant_feed_label) @merchant_feed_language = args[:merchant_feed_language] if args.key?(:merchant_feed_language) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) end |