Class: Google::Apis::DisplayvideoV2::CarrierAndIspTargetingOptionDetails

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

Overview

Represents a targetable carrier or ISP. This will be populated in the carrier_and_isp_details field of a TargetingOption when targeting_type is TARGETING_TYPE_CARRIER_AND_ISP.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CarrierAndIspTargetingOptionDetails

Returns a new instance of CarrierAndIspTargetingOptionDetails.



2558
2559
2560
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2558

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

Instance Attribute Details

#display_nameString

Output only. The display name of the carrier or ISP. Corresponds to the JSON property displayName

Returns:

  • (String)


2551
2552
2553
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2551

def display_name
  @display_name
end

#typeString

Output only. The type indicating if it's carrier or ISP. Corresponds to the JSON property type

Returns:

  • (String)


2556
2557
2558
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2556

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2563
2564
2565
2566
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2563

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