Class: Google::Apis::ContentV2::Datafeed
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::Datafeed
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
Datafeed configuration data.
Instance Attribute Summary collapse
-
#attribute_language ⇒ String
The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
-
#content_language ⇒ String
[DEPRECATED] Please use target.language instead.
-
#content_type ⇒ String
The type of data feed.
-
#fetch_schedule ⇒ Google::Apis::ContentV2::DatafeedFetchSchedule
The required fields vary based on the frequency of fetching.
-
#file_name ⇒ String
The filename of the feed.
-
#format ⇒ Google::Apis::ContentV2::DatafeedFormat
Format of the feed file.
-
#id ⇒ Fixnum
The ID of the data feed.
-
#intended_destinations ⇒ Array<String>
[DEPRECATED] Please use target.includedDestination instead.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
A descriptive name of the data feed.
-
#target_country ⇒ String
[DEPRECATED] Please use target.country instead.
-
#targets ⇒ Array<Google::Apis::ContentV2::DatafeedTarget>
The targets this feed should apply to (country, language, destinations).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Datafeed
constructor
A new instance of Datafeed.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Datafeed
Returns a new instance of Datafeed
1203 1204 1205 |
# File 'generated/google/apis/content_v2/classes.rb', line 1203 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_language ⇒ String
The two-letter ISO 639-1 language in which the attributes are defined in the
data feed.
Corresponds to the JSON property attributeLanguage
1137 1138 1139 |
# File 'generated/google/apis/content_v2/classes.rb', line 1137 def attribute_language @attribute_language end |
#content_language ⇒ String
[DEPRECATED] Please use target.language instead. The two-letter ISO 639-1
language of the items in the feed. Must be a valid language for targetCountry.
Corresponds to the JSON property contentLanguage
1143 1144 1145 |
# File 'generated/google/apis/content_v2/classes.rb', line 1143 def content_language @content_language end |
#content_type ⇒ String
The type of data feed. For product inventory feeds, only feeds for local
stores, not online stores, are supported.
Corresponds to the JSON property contentType
1149 1150 1151 |
# File 'generated/google/apis/content_v2/classes.rb', line 1149 def content_type @content_type end |
#fetch_schedule ⇒ Google::Apis::ContentV2::DatafeedFetchSchedule
The required fields vary based on the frequency of fetching. For a monthly
fetch schedule, day_of_month and hour are required. For a weekly fetch
schedule, weekday and hour are required. For a daily fetch schedule, only hour
is required.
Corresponds to the JSON property fetchSchedule
1157 1158 1159 |
# File 'generated/google/apis/content_v2/classes.rb', line 1157 def fetch_schedule @fetch_schedule end |
#file_name ⇒ String
The filename of the feed. All feeds must have a unique file name.
Corresponds to the JSON property fileName
1162 1163 1164 |
# File 'generated/google/apis/content_v2/classes.rb', line 1162 def file_name @file_name end |
#format ⇒ Google::Apis::ContentV2::DatafeedFormat
Format of the feed file.
Corresponds to the JSON property format
1167 1168 1169 |
# File 'generated/google/apis/content_v2/classes.rb', line 1167 def format @format end |
#id ⇒ Fixnum
The ID of the data feed.
Corresponds to the JSON property id
1172 1173 1174 |
# File 'generated/google/apis/content_v2/classes.rb', line 1172 def id @id end |
#intended_destinations ⇒ Array<String>
[DEPRECATED] Please use target.includedDestination instead. The list of
intended destinations (corresponds to checked check boxes in Merchant Center).
Corresponds to the JSON property intendedDestinations
1178 1179 1180 |
# File 'generated/google/apis/content_v2/classes.rb', line 1178 def intended_destinations @intended_destinations end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
datafeed".
Corresponds to the JSON property kind
1184 1185 1186 |
# File 'generated/google/apis/content_v2/classes.rb', line 1184 def kind @kind end |
#name ⇒ String
A descriptive name of the data feed.
Corresponds to the JSON property name
1189 1190 1191 |
# File 'generated/google/apis/content_v2/classes.rb', line 1189 def name @name end |
#target_country ⇒ String
[DEPRECATED] Please use target.country instead. The country where the items in
the feed will be included in the search index, represented as a CLDR territory
code.
Corresponds to the JSON property targetCountry
1196 1197 1198 |
# File 'generated/google/apis/content_v2/classes.rb', line 1196 def target_country @target_country end |
#targets ⇒ Array<Google::Apis::ContentV2::DatafeedTarget>
The targets this feed should apply to (country, language, destinations).
Corresponds to the JSON property targets
1201 1202 1203 |
# File 'generated/google/apis/content_v2/classes.rb', line 1201 def targets @targets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 |
# File 'generated/google/apis/content_v2/classes.rb', line 1208 def update!(**args) @attribute_language = args[:attribute_language] if args.key?(:attribute_language) @content_language = args[:content_language] if args.key?(:content_language) @content_type = args[:content_type] if args.key?(:content_type) @fetch_schedule = args[:fetch_schedule] if args.key?(:fetch_schedule) @file_name = args[:file_name] if args.key?(:file_name) @format = args[:format] if args.key?(:format) @id = args[:id] if args.key?(:id) @intended_destinations = args[:intended_destinations] if args.key?(:intended_destinations) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @target_country = args[:target_country] if args.key?(:target_country) @targets = args[:targets] if args.key?(:targets) end |