Class: Google::Apis::DfareportingV2_6::LanguageTargeting

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

Overview

Language Targeting.

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) ⇒ LanguageTargeting

Returns a new instance of LanguageTargeting.


6736
6737
6738
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 6736

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

Instance Attribute Details

#languagesArray<Google::Apis::DfareportingV2_6::Language>

Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated. Corresponds to the JSON property languages


6734
6735
6736
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 6734

def languages
  @languages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


6741
6742
6743
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 6741

def update!(**args)
  @languages = args[:languages] if args.key?(:languages)
end