Class: Google::Apis::DisplayvideoV1::EnvironmentAssignedTargetingOptionDetails

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

Overview

Assigned environment targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_ENVIRONMENT.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnvironmentAssignedTargetingOptionDetails

Returns a new instance of EnvironmentAssignedTargetingOptionDetails.



4768
4769
4770
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4768

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

Instance Attribute Details

#environmentString

Required. The serving environment. Corresponds to the JSON property environment

Returns:

  • (String)


4759
4760
4761
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4759

def environment
  @environment
end

#targeting_option_idString

Required. The targeting_option_id of a TargetingOption of type TARGETING_TYPE_ENVIRONMENT (e.g., "508010" for targeting the ENVIRONMENT_WEB_OPTIMIZED option). Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


4766
4767
4768
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4766

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4773
4774
4775
4776
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4773

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