Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesLanguageConstant
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesLanguageConstant
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/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) ⇒ GoogleAdsSearchads360V0ResourcesLanguageConstant
constructor
A new instance of GoogleAdsSearchads360V0ResourcesLanguageConstant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesLanguageConstant
Returns a new instance of GoogleAdsSearchads360V0ResourcesLanguageConstant.
7198 7199 7200 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7198 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
7173 7174 7175 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7173 def code @code end |
#id ⇒ Fixnum
Output only. The ID of the language constant.
Corresponds to the JSON property id
7178 7179 7180 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7178 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
7184 7185 7186 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7184 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`
7190 7191 7192 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7190 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
7195 7196 7197 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7195 def targetable @targetable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7203 7204 7205 7206 7207 7208 7209 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7203 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 |