class Google::Apis::ContentV2::Datafeed

Datafeed configuration data.

Attributes

attribute_language[RW]

The two-letter ISO 639-1 language in which the attributes are defined in the data feed. Corresponds to the JSON property `attributeLanguage` @return [String]

content_language[RW]
DEPRECATED

Please use targets[].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` @return [String]

content_type[RW]

Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - “` local products`” - “`product inventory`” - “`products`” Corresponds to the JSON property `contentType` @return [String]

fetch_schedule[RW]

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` @return [Google::Apis::ContentV2::DatafeedFetchSchedule]

file_name[RW]

Required. The filename of the feed. All feeds must have a unique file name. Corresponds to the JSON property `fileName` @return [String]

format[RW]

Format of the feed file. Corresponds to the JSON property `format` @return [Google::Apis::ContentV2::DatafeedFormat]

id[RW]

Required for update. The ID of the data feed. Corresponds to the JSON property `id` @return [Fixnum]

intended_destinations[RW]
DEPRECATED

Please use targets[].includedDestinations instead. The list of

intended destinations (corresponds to checked check boxes in Merchant Center). Corresponds to the JSON property `intendedDestinations` @return [Array<String>]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “`content# datafeed`” Corresponds to the JSON property `kind` @return [String]

name[RW]

Required for insert. A descriptive name of the data feed. Corresponds to the JSON property `name` @return [String]

target_country[RW]
DEPRECATED

Please use targets[].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` @return [String]

targets[RW]

The targets this feed should apply to (country, language, destinations). Corresponds to the JSON property `targets` @return [Array<Google::Apis::ContentV2::DatafeedTarget>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 1845
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/classes.rb, line 1850
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