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.
464 465 466 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 464 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
454 455 456 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 454 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
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 |