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.



699
700
701
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 699

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)


689
690
691
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 689

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)


697
698
699
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 697

def target_country
  @target_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



704
705
706
707
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 704

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