Class: Google::Apis::DfareportingV3_5::LanguageTargeting

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

Overview

Language Targeting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LanguageTargeting

Returns a new instance of LanguageTargeting.



6963
6964
6965
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6963

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

Instance Attribute Details

#languagesArray<Google::Apis::DfareportingV3_5::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



6961
6962
6963
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6961

def languages
  @languages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6968
6969
6970
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6968

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