Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesLanguageConstant
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesLanguageConstant
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
A language.
Instance Attribute Summary collapse
-
#code ⇒ String
Output only.
-
#id ⇒ Fixnum
Output only.
-
#name ⇒ String
Output only.
-
#resource_name ⇒ String
Output only.
-
#targetable ⇒ Boolean
(also: #targetable?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesLanguageConstant
constructor
A new instance of GoogleAdsSearchads360V23ResourcesLanguageConstant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesLanguageConstant
Returns a new instance of GoogleAdsSearchads360V23ResourcesLanguageConstant.
30619 30620 30621 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
Corresponds to the JSON property code
30594 30595 30596 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30594 def code @code end |
#id ⇒ Fixnum
Output only. The ID of the language constant.
Corresponds to the JSON property id
30599 30600 30601 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30599 def id @id end |
#name ⇒ String
Output only. The full name of the language in English, for example, "English (
US)", "Spanish", etc.
Corresponds to the JSON property name
30605 30606 30607 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30605 def name @name end |
#resource_name ⇒ String
Output only. The resource name of the language constant. Language constant
resource names have the form: languageConstants/criterion_id`
Corresponds to the JSON propertyresourceName`
30611 30612 30613 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30611 def resource_name @resource_name end |
#targetable ⇒ Boolean Also known as: targetable?
Output only. Whether the language is targetable.
Corresponds to the JSON property targetable
30616 30617 30618 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30616 def targetable @targetable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30624 30625 30626 30627 30628 30629 30630 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 30624 def update!(**args) @code = args[:code] if args.key?(:code) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @resource_name = args[:resource_name] if args.key?(:resource_name) @targetable = args[:targetable] if args.key?(:targetable) end |