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.



760
761
762
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 760

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)


750
751
752
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 750

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)


758
759
760
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 758

def target_country
  @target_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



765
766
767
768
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 765

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