Class: Google::Apis::DfareportingV2_7::Language

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_7/classes.rb,
generated/google/apis/dfareporting_v2_7/representations.rb,
generated/google/apis/dfareporting_v2_7/representations.rb

Overview

Contains information about a language that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Language

Returns a new instance of Language



6766
6767
6768
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6766

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

Instance Attribute Details

#idString

Language ID of this language. This is the ID used for targeting and generating reports. Corresponds to the JSON property id

Returns:

  • (String)


6746
6747
6748
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6746

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#language". Corresponds to the JSON property kind

Returns:

  • (String)


6752
6753
6754
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6752

def kind
  @kind
end

#language_codeString

Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are "en" for English or "zh_CN" for Simplified Chinese. Corresponds to the JSON property languageCode

Returns:

  • (String)


6759
6760
6761
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6759

def language_code
  @language_code
end

#nameString

Name of this language. Corresponds to the JSON property name

Returns:

  • (String)


6764
6765
6766
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6764

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6771
6772
6773
6774
6775
6776
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6771

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @language_code = args[:language_code] if args.key?(:language_code)
  @name = args[:name] if args.key?(:name)
end