Class: Google::Apis::DisplayvideoV1::Channel
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::Channel
- 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
A single channel. Channels are custom groups of related websites and apps.
Instance Attribute Summary collapse
-
#advertiser_id ⇒ Fixnum
The ID of the advertiser that owns the channel.
-
#channel_id ⇒ Fixnum
Output only.
-
#display_name ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#partner_id ⇒ Fixnum
The ID of the partner that owns the channel.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Channel
constructor
A new instance of Channel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Channel
Returns a new instance of Channel.
2118 2119 2120 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2118 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ Fixnum
The ID of the advertiser that owns the channel.
Corresponds to the JSON property advertiserId
2095 2096 2097 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2095 def advertiser_id @advertiser_id end |
#channel_id ⇒ Fixnum
Output only. The unique ID of the channel. Assigned by the system.
Corresponds to the JSON property channelId
2100 2101 2102 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2100 def channel_id @channel_id end |
#display_name ⇒ String
Required. The display name of the channel. Must be UTF-8 encoded with a
maximum length of 240 bytes.
Corresponds to the JSON property displayName
2106 2107 2108 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2106 def display_name @display_name end |
#name ⇒ String
Output only. The resource name of the channel.
Corresponds to the JSON property name
2111 2112 2113 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2111 def name @name end |
#partner_id ⇒ Fixnum
The ID of the partner that owns the channel.
Corresponds to the JSON property partnerId
2116 2117 2118 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2116 def partner_id @partner_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2123 2124 2125 2126 2127 2128 2129 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2123 def update!(**args) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @channel_id = args[:channel_id] if args.key?(:channel_id) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @partner_id = args[:partner_id] if args.key?(:partner_id) end |