Class: Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource
- 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
-
#content_language ⇒ String
Required.
-
#target_country ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromotionDataSource
constructor
A new instance of PromotionDataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_language ⇒ String
Required. Immutable. The two-letter ISO 639-1 language of the items in the
data source.
Corresponds to the JSON property contentLanguage
689 690 691 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 689 def content_language @content_language end |
#target_country ⇒ String
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
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 |