Class: Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_datasources_v1beta/classes.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb

Overview

The promotion data source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PromotionDataSource

Returns a new instance of PromotionDataSource.



464
465
466
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 464

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

Instance Attribute Details

#content_languageString

Required. Immutable. The two-letter ISO 639-1 language of the items in the data source. Corresponds to the JSON property contentLanguage

Returns:

  • (String)


454
455
456
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 454

def content_language
  @content_language
end

#target_countryString

Required. Immutable. The target country used as part of the unique identifier. Represented as a CLDR territory code. Promotions are only available in selected countries. Corresponds to the JSON property targetCountry

Returns:

  • (String)


462
463
464
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 462

def target_country
  @target_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 469

def update!(**args)
  @content_language = args[:content_language] if args.key?(:content_language)
  @target_country = args[:target_country] if args.key?(:target_country)
end