Class: Google::Apis::DfareportingV4::LanguageTargeting
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::LanguageTargeting
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Language Targeting.
Instance Attribute Summary collapse
-
#languages ⇒ Array<Google::Apis::DfareportingV4::Language>
Languages that this ad targets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LanguageTargeting
constructor
A new instance of LanguageTargeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LanguageTargeting
Returns a new instance of LanguageTargeting.
7533 7534 7535 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 7533 def initialize(**args) update!(**args) end |
Instance Attribute Details
#languages ⇒ Array<Google::Apis::DfareportingV4::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
7531 7532 7533 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 7531 def languages @languages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7538 7539 7540 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 7538 def update!(**args) @languages = args[:languages] if args.key?(:languages) end |