Class: Google::Apis::DisplayvideoV1::EnvironmentAssignedTargetingOptionDetails
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::EnvironmentAssignedTargetingOptionDetails
- 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
-
#environment ⇒ String
The serving environment.
-
#targeting_option_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnvironmentAssignedTargetingOptionDetails
constructor
A new instance of EnvironmentAssignedTargetingOptionDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnvironmentAssignedTargetingOptionDetails
Returns a new instance of EnvironmentAssignedTargetingOptionDetails.
4772 4773 4774 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4772 def initialize(**args) update!(**args) end |
Instance Attribute Details
#environment ⇒ String
The serving environment. Output only in v1. Required in v2.
Corresponds to the JSON property environment
4763 4764 4765 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4763 def environment @environment end |
#targeting_option_id ⇒ String
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
4770 4771 4772 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4770 def targeting_option_id @targeting_option_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4777 4778 4779 4780 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 4777 def update!(**args) @environment = args[:environment] if args.key?(:environment) @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id) end |