Class: Google::Apis::DisplayvideoV1::Channel

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

A single channel. Channels are custom groups of related websites and apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Channel

Returns a new instance of Channel.



1608
1609
1610
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1608

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

Instance Attribute Details

#advertiser_idFixnum

The ID of the advertiser that owns the channel. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


1585
1586
1587
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1585

def advertiser_id
  @advertiser_id
end

#channel_idFixnum

Output only. The unique ID of the channel. Assigned by the system. Corresponds to the JSON property channelId

Returns:

  • (Fixnum)


1590
1591
1592
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1590

def channel_id
  @channel_id
end

#display_nameString

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

Returns:

  • (String)


1596
1597
1598
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1596

def display_name
  @display_name
end

#nameString

Output only. The resource name of the channel. Corresponds to the JSON property name

Returns:

  • (String)


1601
1602
1603
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1601

def name
  @name
end

#partner_idFixnum

The ID of the partner that owns the channel. Corresponds to the JSON property partnerId

Returns:

  • (Fixnum)


1606
1607
1608
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1606

def partner_id
  @partner_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1613
1614
1615
1616
1617
1618
1619
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1613

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