Class: Google::Apis::ContentV2::DatafeedTarget

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatafeedTarget

Returns a new instance of DatafeedTarget.



2151
2152
2153
# File 'generated/google/apis/content_v2/classes.rb', line 2151

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)


2128
2129
2130
# File 'generated/google/apis/content_v2/classes.rb', line 2128

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>)


2134
2135
2136
# File 'generated/google/apis/content_v2/classes.rb', line 2134

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 excludedDestinations. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle Corresponds to the JSON property includedDestinations

Returns:

  • (Array<String>)


2143
2144
2145
# File 'generated/google/apis/content_v2/classes.rb', line 2143

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)


2149
2150
2151
# File 'generated/google/apis/content_v2/classes.rb', line 2149

def language
  @language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2156
2157
2158
2159
2160
2161
# File 'generated/google/apis/content_v2/classes.rb', line 2156

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