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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/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.



3704
3705
3706
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3704

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

Instance Attribute Details

#environmentString

Output only. The serving environment. Corresponds to the JSON property environment

Returns:

  • (String)


3695
3696
3697
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3695

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)


3702
3703
3704
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3702

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3709
3710
3711
3712
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3709

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