Class: Google::Apis::ContentV2_1::DatafeedTarget

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DatafeedTarget

Returns a new instance of DatafeedTarget



1903
1904
1905
# File 'generated/google/apis/content_v2_1/classes.rb', line 1903

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

Instance Attribute Details

#countryString

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 country

Returns:

  • (String)


1882
1883
1884
# File 'generated/google/apis/content_v2_1/classes.rb', line 1882

def country
  @country
end

#excluded_destinationsArray<String>

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). Corresponds to the JSON property excludedDestinations

Returns:

  • (Array<String>)


1888
1889
1890
# File 'generated/google/apis/content_v2_1/classes.rb', line 1888

def excluded_destinations
  @excluded_destinations
end

#included_destinationsArray<String>

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in the excluded_destination field. Corresponds to the JSON property includedDestinations

Returns:

  • (Array<String>)


1895
1896
1897
# File 'generated/google/apis/content_v2_1/classes.rb', line 1895

def included_destinations
  @included_destinations
end

#languageString

The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country. Corresponds to the JSON property language

Returns:

  • (String)


1901
1902
1903
# File 'generated/google/apis/content_v2_1/classes.rb', line 1901

def language
  @language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1908
1909
1910
1911
1912
1913
# File 'generated/google/apis/content_v2_1/classes.rb', line 1908

def update!(**args)
  @country = args[:country] if args.key?(:country)
  @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations)
  @included_destinations = args[:included_destinations] if args.key?(:included_destinations)
  @language = args[:language] if args.key?(:language)
end