Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesLanguageConstant

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesLanguageConstant

Returns a new instance of GoogleAdsSearchads360V0ResourcesLanguageConstant.



7885
7886
7887
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7885

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc. Corresponds to the JSON property code

Returns:

  • (String)


7860
7861
7862
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7860

def code
  @code
end

#idFixnum

Output only. The ID of the language constant. Corresponds to the JSON property id

Returns:

  • (Fixnum)


7865
7866
7867
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7865

def id
  @id
end

#nameString

Output only. The full name of the language in English, for example, "English ( US)", "Spanish", etc. Corresponds to the JSON property name

Returns:

  • (String)


7871
7872
7873
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7871

def name
  @name
end

#resource_nameString

Output only. The resource name of the language constant. Language constant resource names have the form: languageConstants/criterion_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


7877
7878
7879
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7877

def resource_name
  @resource_name
end

#targetableBoolean Also known as: targetable?

Output only. Whether the language is targetable. Corresponds to the JSON property targetable

Returns:

  • (Boolean)


7882
7883
7884
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7882

def targetable
  @targetable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7890
7891
7892
7893
7894
7895
7896
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7890

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